Skip to content
Snippets Groups Projects
Commit 27a44e8d authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'bugfix-12725' into 'master'

Bugfix 12725

See merge request !1796
parents 163c9983 ac2616bf
No related branches found
No related tags found
1 merge request!1796Bugfix 12725
Pipeline #44245 failed with stage
in 17 minutes and 46 seconds
Subproject commit 9e7565c9417bad979e90b83ccd537aecfe7c07f9
Subproject commit 70cffb96e4be3972625268f3d4f972bb337a87a3
......@@ -137,7 +137,7 @@ static int s_decree_verify(dap_chain_net_t *a_net, dap_chain_datum_decree_t *a_d
decree_table_t **l_decrees = dap_chain_net_get_decrees(a_net), *l_sought_decree = NULL;
HASH_FIND(hh, *l_decrees, a_decree_hash, sizeof(dap_hash_fast_t), l_sought_decree);
if (l_sought_decree && l_sought_decree->decree) {
log_it(L_WARNING, "Decree with hash %s is already present", dap_hash_fast_to_str_static(a_decree_hash));
debug_if(s_debug_more, L_WARNING, "Decree with hash %s is already present", dap_hash_fast_to_str_static(a_decree_hash));
return -123;
}
......@@ -270,7 +270,7 @@ int dap_chain_net_decree_apply(dap_hash_fast_t *a_decree_hash, dap_chain_datum_d
}
} else { // Process decree itself
if (l_new_decree->decree) {
log_it(L_WARNING, "Decree with hash %s is already present", dap_hash_fast_to_str_static(a_decree_hash));
debug_if(s_debug_more, L_WARNING, "Decree with hash %s is already present", dap_hash_fast_to_str_static(a_decree_hash));
return -123;
}
l_new_decree->decree = a_chain->is_mapped ? a_decree : DAP_DUP_SIZE(a_decree, dap_chain_datum_decree_get_size(a_decree));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment