diff --git a/modules/consensus/none/dap_chain_cs_none.c b/modules/consensus/none/dap_chain_cs_none.c index 8cde97a6cc7a379cbaf2ea485309f0c14e590c1d..4055932edee3e28402b75516f589130858b5ec73 100644 --- a/modules/consensus/none/dap_chain_cs_none.c +++ b/modules/consensus/none/dap_chain_cs_none.c @@ -154,6 +154,13 @@ static void s_dap_chain_gdb_callback_purge(dap_chain_t *a_chain) PVT(DAP_CHAIN_GDB(a_chain))->is_load_mode = true; } + +static void s_callback_memepool_notify(dap_global_db_context_t *a_context UNUSED_ARG, dap_store_obj_t *a_obj, void *a_arg) +{ + if (a_obj->type == DAP_DB$K_OPTYPE_ADD) + dap_chain_node_mempool_process_all(a_arg, false); +} + /** * @brief configure chain gdb * Set atom element callbacks @@ -186,6 +193,8 @@ int dap_chain_gdb_new(dap_chain_t * a_chain, dap_config_t * a_chain_cfg) // Add group prefix that will be tracking all changes dap_global_db_add_sync_group(l_net->pub.name, "chain-gdb", s_history_callback_notify, l_gdb); + dap_chain_add_mempool_notify_callback(a_chain, s_callback_memepool_notify, a_chain); + pthread_cond_init(&l_gdb_priv->load_cond, NULL); pthread_mutex_init(&l_gdb_priv->load_mutex, NULL); diff --git a/modules/service/stake_lock/dap_chain_net_srv_stake_lock.c b/modules/service/stake_lock/dap_chain_net_srv_stake_lock.c index 5aa227425002515352f43f0c30b758936c547c84..af330feb011161bde475c3e059a811f554615930 100644 --- a/modules/service/stake_lock/dap_chain_net_srv_stake_lock.c +++ b/modules/service/stake_lock/dap_chain_net_srv_stake_lock.c @@ -1198,8 +1198,9 @@ static bool s_stake_lock_callback_verificator(dap_ledger_t *a_ledger, dap_hash_f } } } + dap_list_free(l_outs_list); if (IS_ZERO_256(l_blank_out_value)) { - log_it(L_ERROR, "Can't find BLANK addr in burning TX"); + log_it(L_ERROR, "Can't find OUT with BLANK addr in burning TX"); return false; }