Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
cleaned up logical expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Gundlach committed Dec 5, 2020
1 parent 9b37755 commit 00af187
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 00af187

Please sign in to comment.