db_management.cpp: Properly clear_pending in close(), fix #336

This commit is contained in:
theoreticalbts 2015-09-28 10:57:46 -04:00
parent 8d52e2dda8
commit 91af21d50c

View file

@ -196,6 +196,11 @@ void database::close(uint32_t blocks_to_rewind)
{
}
// Since pop_block() will move tx's in the popped blocks into pending,
// we have to clear_pending() after we're done popping to get a clean
// DB state (issue #336).
clear_pending();
object_database::flush();
object_database::close();