mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 07:52:25 +00:00
Merge pull request #593
a8caab1
unit_tests: initialize db object in ctor, not open (moneromooo-monero)
This commit is contained in:
commit
3a3f8fa808
1 changed files with 2 additions and 1 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Reference in a new issue