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();