[chainmaker][#537]remove config_size parameters
@@ -160,14 +160,14 @@ BOAT_RESULT BoatHlchainmakerWalletSetUserClientInfo(BoatHlchainmakerWallet *wall
return result;
}
-BoatHlchainmakerWallet *BoatHlchainmakerWalletInit(const BoatHlchainmakerWalletConfig *config_ptr, BUINT32 config_size)
+BoatHlchainmakerWallet *BoatHlchainmakerWalletInit(const BoatHlchainmakerWalletConfig *config_ptr)
{
BoatHlchainmakerWallet *wallet_ptr = NULL;
BOAT_RESULT result = BOAT_SUCCESS;
- if ((config_ptr == NULL) || (config_size == 0))
+ if (config_ptr == NULL)
{
- BoatLog(BOAT_LOG_CRITICAL, "config_ptr cannot be NULL or config_size cannot be zero.");
+ BoatLog(BOAT_LOG_CRITICAL, "config_ptr cannot be NULL");
return NULL;
}
@@ -179,12 +179,6 @@ BoatHlchainmakerWallet *BoatHlchainmakerWalletInit(const BoatHlchainmakerWalletC
return NULL;
}
- if (sizeof(BoatHlchainmakerWalletConfig) != config_size)
- {
- BoatLog(BOAT_LOG_CRITICAL, "Incorrect configuration size.");
- return NULL;
- }
-
/* initialization */
wallet_ptr->user_cert_info.cert.field_ptr = NULL;
wallet_ptr->user_cert_info.cert.field_len = 0;
