From ed0917ee030b094e7b322874d14458041ee808f8 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Thu, 7 Sep 2017 12:00:44 -0400 Subject: [PATCH] Leave undo_db enabled during replay so bookie plugin gets the correct history --- libraries/chain/db_management.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/chain/db_management.cpp b/libraries/chain/db_management.cpp index d722df67..dbfac40d 100644 --- a/libraries/chain/db_management.cpp +++ b/libraries/chain/db_management.cpp @@ -64,7 +64,10 @@ void database::reindex(fc::path data_dir, const genesis_state_type& initial_allo const auto last_block_num = last_block->block_num(); ilog( "Replaying blocks..." ); - _undo_db.disable(); + // Right now, we leave undo_db enabled when replaying because the bookie plugin + // depends on new/changed/removed object notifications, and those are only fired + // when the undo_db is enabled + //_undo_db.disable(); for( uint32_t i = 1; i <= last_block_num; ++i ) { if( i % 10000 == 0 ) std::cerr << " " << double(i*100)/last_block_num << "% "<