From 2cf00c1bca952e8d837364c84772bf48e214b604 Mon Sep 17 00:00:00 2001 From: Nils-Erik Frantzell Date: Thu, 14 Nov 2019 22:10:05 -0800 Subject: [PATCH] Insert genesis details into extras database Also insert the genesis block details into the extras database during rebuild since the genesis block won't be reimported during the rebuild process. --- libethereum/BlockChain.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libethereum/BlockChain.cpp b/libethereum/BlockChain.cpp index 79dee1c770d..45ac2172c00 100644 --- a/libethereum/BlockChain.cpp +++ b/libethereum/BlockChain.cpp @@ -374,8 +374,12 @@ void BlockChain::rebuild(fs::path const& _path, std::functioninsert( + toSlice(m_genesisHash, ExtraDetails), (db::Slice)dev::ref(genesisDetailsRlp)); LOG(m_loggerInfo) << "Rebuilding the extras and state databases by reimporting blocks 0 -> " << originalNumber << ", this will probably take a while";