From f31e4061aa16cebb859f3f2f86f13e64f91a9918 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 24 Jul 2015 14:49:19 +0200 Subject: [PATCH] Fix hidden virtual issue. --- libethereum/CanonBlockChain.cpp | 4 ++-- libethereum/CanonBlockChain.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libethereum/CanonBlockChain.cpp b/libethereum/CanonBlockChain.cpp index 8e9d2ae6c..2a7408437 100644 --- a/libethereum/CanonBlockChain.cpp +++ b/libethereum/CanonBlockChain.cpp @@ -49,10 +49,10 @@ CanonBlockChain::CanonBlockChain(std::string const& _path, WithExisting { } -void CanonBlockChain::reopen(std::string const& _path, WithExisting _we, ProgressCallback const& _pc) +void CanonBlockChain::reopen(WithExisting _we, ProgressCallback const& _pc) { close(); - open(createGenesisBlock(), createGenesisState(), _path, _we, _pc); + open(createGenesisBlock(), createGenesisState(), m_dbPath, _we, _pc); } bytes CanonBlockChain::createGenesisBlock() diff --git a/libethereum/CanonBlockChain.h b/libethereum/CanonBlockChain.h index 44f28980d..d09108b38 100644 --- a/libethereum/CanonBlockChain.h +++ b/libethereum/CanonBlockChain.h @@ -79,7 +79,7 @@ public: ~CanonBlockChain() {} /// Reopen everything. - virtual void reopen(std::string const& _path, WithExisting _we = WithExisting::Trust, ProgressCallback const& _pc = ProgressCallback()); + virtual void reopen(WithExisting _we = WithExisting::Trust, ProgressCallback const& _pc = ProgressCallback()); /// @returns the genesis block header. static Ethash::BlockHeader const& genesis();