Skip to content
Snippets Groups Projects

Decree application fix

Merged Constantin P. requested to merge hotfix-13238 into master
@@ -485,6 +485,8 @@ static int s_common_decree_handler(dap_chain_datum_decree_t *a_decree, dap_chain
@@ -485,6 +485,8 @@ static int s_common_decree_handler(dap_chain_datum_decree_t *a_decree, dap_chain
log_it(L_WARNING, "Can't apply this decree to specified chain");
log_it(L_WARNING, "Can't apply this decree to specified chain");
return -115;
return -115;
}
}
 
if (a_load_mode)
 
break;
uint16_t l_decree_count = (uint16_t)dap_chain_uint256_to(l_value);
uint16_t l_decree_count = (uint16_t)dap_chain_uint256_to(l_value);
uint16_t l_current_count = dap_chain_net_srv_stake_get_total_keys(a_net->pub.id, NULL);
uint16_t l_current_count = dap_chain_net_srv_stake_get_total_keys(a_net->pub.id, NULL);
if (l_decree_count > l_current_count) {
if (l_decree_count > l_current_count) {
Loading