From 12fa33dbd970e064c20b9019116570d432012602 Mon Sep 17 00:00:00 2001 From: Brian Johnson Date: Tue, 16 Jan 2018 16:52:29 -0600 Subject: [PATCH 1/2] Fixed applied_block call. --- plugins/account_history_plugin/account_history_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); } From 5e3c22afae2ca0472d655eddacf5556039f991be Mon Sep 17 00:00:00 2001 From: Brian Johnson Date: Tue, 16 Jan 2018 17:06:53 -0600 Subject: [PATCH 2/2] Making block_trace creation with signed_block to be explicit. --- libraries/chain/include/eosio/chain/block.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {}