Browse Source

Fix killExisting bug.

cl-refactor
Gav Wood 11 years ago
parent
commit
440800a4fa
  1. 8
      libethereum/FeeStructure.h
  2. 3
      libethereum/State.cpp

8
libethereum/FeeStructure.h

@ -26,11 +26,13 @@
namespace eth
{
/**
* The collection of fee amounts that makes up the fee structure.
*/
struct FeeStructure
{
/// The fee structure. Values yet to be agreed on...
void setMultiplier(u256 _x); ///< The current block multiplier.
u256 multiplier() const;
void setMultiplier(u256 _x); ///< Set the current block multiplier.
u256 multiplier() const; ///< @returns the current block multiplier.
u256 m_stepFee;
u256 m_dataFee;
u256 m_memoryFee;

3
libethereum/State.cpp

@ -56,6 +56,9 @@ Overlay State::openDB(std::string _path, bool _killExisting)
_path = Defaults::get()->m_dbPath;
boost::filesystem::create_directory(_path);
if (_killExisting)
boost::filesystem::remove_all(_path + "/state");
ldb::Options o;
o.create_if_missing = true;
ldb::DB* db = nullptr;

Loading…
Cancel
Save