Merge pull request #3226
e4646379keccak: fix mdlen bounds sanity checking (moneromooo-monero)2e3e90acpass large parameters by const ref, not value (moneromooo-monero)61defd89blockchain: sanity check number of precomputed hash of hash blocks (moneromooo-monero)9af6b2d1ringct: fix infinite loop in unused h2b function (moneromooo-monero)8cea8d0csimplewallet: double check a new multisig wallet is multisig (moneromooo-monero)9b98a6acthreadpool: catch exceptions in dtor, to avoid terminate (moneromooo-monero)24803ed9blockchain_export: fix buffer overflow in exporter (moneromooo-monero)f3f7da62perf_timer: rewrite to make it clear there is no division by zero (moneromooo-monero)c6ea3df0performance_tests: remove add_arg call stray extra param (moneromooo-monero)fa6b4566fuzz_tests: fix an uninitialized var in setup (moneromooo-monero)03887f11keccak: fix sanity check bounds test (moneromooo-monero)ad11db91blockchain_db: initialize m_open in base class ctor (moneromooo-monero)bece67f9miner: restore std::cout precision after modification (moneromooo-monero)1aabd14cdb_lmdb: check hard fork info drop succeeded (moneromooo-monero)
This commit is contained in:
@@ -1080,13 +1080,12 @@ BlockchainLMDB::~BlockchainLMDB()
|
||||
close();
|
||||
}
|
||||
|
||||
BlockchainLMDB::BlockchainLMDB(bool batch_transactions)
|
||||
BlockchainLMDB::BlockchainLMDB(bool batch_transactions): BlockchainDB()
|
||||
{
|
||||
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
|
||||
// initialize folder to something "safe" just in case
|
||||
// someone accidentally misuses this class...
|
||||
m_folder = "thishsouldnotexistbecauseitisgibberish";
|
||||
m_open = false;
|
||||
|
||||
m_batch_transactions = batch_transactions;
|
||||
m_write_txn = nullptr;
|
||||
@@ -3147,8 +3146,12 @@ void BlockchainLMDB::drop_hard_fork_info()
|
||||
|
||||
TXN_PREFIX(0);
|
||||
|
||||
mdb_drop(*txn_ptr, m_hf_starting_heights, 1);
|
||||
mdb_drop(*txn_ptr, m_hf_versions, 1);
|
||||
auto result = mdb_drop(*txn_ptr, m_hf_starting_heights, 1);
|
||||
if (result)
|
||||
throw1(DB_ERROR(lmdb_error("Error dropping hard fork starting heights db: ", result).c_str()));
|
||||
result = mdb_drop(*txn_ptr, m_hf_versions, 1);
|
||||
if (result)
|
||||
throw1(DB_ERROR(lmdb_error("Error dropping hard fork versions db: ", result).c_str()));
|
||||
|
||||
TXN_POSTFIX_SUCCESS();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user