diff --git a/libraries/chain/include/eosio/chain/block.hpp b/libraries/chain/include/eosio/chain/block.hpp index b49651b4183..97cb5af8b00 100644 --- a/libraries/chain/include/eosio/chain/block.hpp +++ b/libraries/chain/include/eosio/chain/block.hpp @@ -140,7 +140,7 @@ namespace eosio { namespace chain { }; struct block_trace { - block_trace(const signed_block& s) + explicit block_trace(const signed_block& s) :block(s) {} diff --git a/plugins/account_history_plugin/account_history_plugin.cpp b/plugins/account_history_plugin/account_history_plugin.cpp index b4c2ef3634a..55fdbf5989d 100644 --- a/plugins/account_history_plugin/account_history_plugin.cpp +++ b/plugins/account_history_plugin/account_history_plugin.cpp @@ -467,7 +467,7 @@ void account_history_plugin::plugin_startup() db.add_index(); my->chain_plug->chain().applied_block.connect ([&impl = my](const chain::block_trace& trace) { - impl->applied_block(trace.block); + impl->applied_block(trace); }); }