feat(fabric parameters check):
when creat fabric wallet, check the parameters "quantities"
@@ -139,6 +139,10 @@ static BOAT_RESULT BoatWalletCreatParaCheck(BoatProtocolType protocol_type,const
/* code */
for (int j = 0; j < fabric_config_ptr->nodesCfg.layoutCfg[i].endorserGroupNum; j++)
{
+ if(fabric_config_ptr->nodesCfg.layoutCfg[i].groupCfg[j].quantities == 0 ||
+ fabric_config_ptr->nodesCfg.layoutCfg[i].groupCfg[j].quantities > fabric_config_ptr->nodesCfg.layoutCfg[i].groupCfg[j].endorserNumber){
+ return BOAT_ERROR;
+ }
/* code */
for (int k = 0; k < fabric_config_ptr->nodesCfg.layoutCfg[i].groupCfg[j].endorserNumber; k++)
{
