From 00af1877f1770055a293e2c5af4f65ceefebbe53 Mon Sep 17 00:00:00 2001 From: Chris Gundlach Date: Sat, 5 Dec 2020 13:17:40 -0800 Subject: [PATCH] cleaned up logical expression --- .../include/eosio/chain_plugin/blockvault_sync_strategy.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chain_plugin/include/eosio/chain_plugin/blockvault_sync_strategy.hpp b/plugins/chain_plugin/include/eosio/chain_plugin/blockvault_sync_strategy.hpp index 491658bbfc5..b5268063665 100644 --- a/plugins/chain_plugin/include/eosio/chain_plugin/blockvault_sync_strategy.hpp +++ b/plugins/chain_plugin/include/eosio/chain_plugin/blockvault_sync_strategy.hpp @@ -88,7 +88,7 @@ struct blockvault_sync_strategy : public sync_callback { ++_num_blocks_received; auto rc = _blockchain_provider.incoming_blockvault_sync_method(block, - (!_received_snapshot || (block->block_num() != _snapshot_height +1))); + !(_received_snapshot && block->block_num() == _snapshot_height +1)); EOS_ASSERT(rc, plugin_exception, "Unable to sync block from blockvault, block num=${bnum}, block id=${bid}",