diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-02 11:37:00 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-02 11:37:00 +0000 |
commit | a8caab1af193fd2ac9a074f59cbb1b157b8119c0 (patch) | |
tree | 0b0ded9ad2d74371976c079da7681f7cf1de2316 /tests/unit_tests/hardfork.cpp | |
parent | Merge pull request #588 (diff) | |
download | monero-a8caab1af193fd2ac9a074f59cbb1b157b8119c0.tar.xz |
unit_tests: initialize db object in ctor, not open
open isn't actually called in those tests
Diffstat (limited to 'tests/unit_tests/hardfork.cpp')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index 612eb8307..56ec155f0 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -42,10 +42,11 @@ using namespace cryptonote; class TestDB: public BlockchainDB { public: - virtual void open(const std::string& filename, const int db_flags = 0) { + TestDB() { for (size_t n = 0; n < 256; ++n) starting_height[n] = std::numeric_limits<uint64_t>::max(); } + virtual void open(const std::string& filename, const int db_flags = 0) { } virtual void close() {} virtual void sync() {} virtual void reset() {} |