Browse Source

Fix hidden virtual issue.

cl-refactor
Gav Wood 10 years ago
parent
commit
f31e4061aa
  1. 4
      libethereum/CanonBlockChain.cpp
  2. 2
      libethereum/CanonBlockChain.h

4
libethereum/CanonBlockChain.cpp

@ -49,10 +49,10 @@ CanonBlockChain<Ethash>::CanonBlockChain(std::string const& _path, WithExisting
{ {
} }
void CanonBlockChain<Ethash>::reopen(std::string const& _path, WithExisting _we, ProgressCallback const& _pc) void CanonBlockChain<Ethash>::reopen(WithExisting _we, ProgressCallback const& _pc)
{ {
close(); close();
open(createGenesisBlock(), createGenesisState(), _path, _we, _pc); open(createGenesisBlock(), createGenesisState(), m_dbPath, _we, _pc);
} }
bytes CanonBlockChain<Ethash>::createGenesisBlock() bytes CanonBlockChain<Ethash>::createGenesisBlock()

2
libethereum/CanonBlockChain.h

@ -79,7 +79,7 @@ public:
~CanonBlockChain() {} ~CanonBlockChain() {}
/// Reopen everything. /// 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. /// @returns the genesis block header.
static Ethash::BlockHeader const& genesis(); static Ethash::BlockHeader const& genesis();

Loading…
Cancel
Save