Merge pull request #274 from bitshares/273-sync-error

Fix `block_num != 0` syncing issue #273
This commit is contained in:
Abit 2017-05-10 20:22:37 +02:00 committed by GitHub
commit 42afa14012

View file

@ -844,6 +844,9 @@ namespace detail {
return synopsis; // we have no blocks
}
if( low_block_num == 0)
low_block_num = 1;
// at this point:
// low_block_num is the block before the first block we can undo,
// non_fork_high_block_num is the block before the fork (if the peer is on a fork, or otherwise it is the same as high_block_num)