db_management.cpp: Only pop to last irreversible block, fix #407
This commit is contained in:
parent
d1d06213e1
commit
a1b00b2749
1 changed files with 3 additions and 1 deletions
|
|
@ -144,7 +144,9 @@ void database::close(bool rewind)
|
|||
{
|
||||
try
|
||||
{
|
||||
while( true )
|
||||
uint32_t cutoff = get_dynamic_global_properties().last_irreversible_block_num;
|
||||
|
||||
while( head_block_num() > cutoff )
|
||||
{
|
||||
// elog("pop");
|
||||
block_id_type popped_block_id = head_block_id();
|
||||
|
|
|
|||
Loading…
Reference in a new issue