From a08256a2fb0a54e37491743ab3ceb620f99af742 Mon Sep 17 00:00:00 2001 From: liuyujun Date: Fri, 26 Oct 2018 14:59:24 +0800 Subject: [PATCH] fix _last_sent_block_id --- plugins/bnet_plugin/bnet_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bnet_plugin/bnet_plugin.cpp b/plugins/bnet_plugin/bnet_plugin.cpp index 4ddf2af0047..392df4b31eb 100644 --- a/plugins/bnet_plugin/bnet_plugin.cpp +++ b/plugins/bnet_plugin/bnet_plugin.cpp @@ -788,7 +788,7 @@ namespace eosio { /// if something changed, the next block doesn't link to the last /// block we sent, local chain must have switched forks - if( nextblock->previous != _last_sent_block_id ) { + if( nextblock->previous != _last_sent_block_id && _last_sent_block_id != block_id_type() ) { if( !is_known_by_peer( nextblock->previous ) ) { _last_sent_block_id = _local_lib_id; _last_sent_block_num = _local_lib;