Fix for block_num != 0

Backport from Steem/BitShares
Some info here: https://github.com/bitshares/bitshares-core/issues/273
This commit is contained in:
BhuzOr 2017-06-04 15:04:20 +02:00 committed by PBSA Github Manager
parent 661a5ea5b0
commit fc18c4812c

View file

@ -833,6 +833,9 @@ namespace detail {
if (high_block_num == 0)
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,