Fix : Segmentation fault when running several witness nodes on the same machine
This commit is contained in:
parent
2142bc4d08
commit
0109bc8c04
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ node_property_object& database::node_properties()
|
|||
|
||||
uint32_t database::last_non_undoable_block_num() const
|
||||
{
|
||||
return head_block_num() - _undo_db.size();
|
||||
return head_block_num() < _undo_db.size() ? 0 : head_block_num() - _undo_db.size();
|
||||
}
|
||||
|
||||
} }
|
||||
|
|
|
|||
Loading…
Reference in a new issue