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:
parent
661a5ea5b0
commit
fc18c4812c
1 changed files with 3 additions and 0 deletions
|
|
@ -834,6 +834,9 @@ namespace detail {
|
||||||
return synopsis; // we have no blocks
|
return synopsis; // we have no blocks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( low_block_num == 0)
|
||||||
|
low_block_num = 1;
|
||||||
|
|
||||||
// at this point:
|
// at this point:
|
||||||
// low_block_num is the block before the first block we can undo,
|
// 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)
|
// 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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue