[monero-project/monero] Regtest (#3854)

moneromooo-monero commented on this pull request.

> @@ -419,6 +420,10 @@ bool Blockchain::init(BlockchainDB* db, const network_type nettype, bool offline
// ensure we fixup anything we found and fix in the future
+ else if (m_regtest)
+ {
+ m_db->set_batch_transactions(true);
+ }

I’d remove that whole if (regtest) { batch; } thing, and default batch transactions to true wherever they’re defined (db_lmdb.cpp probably). That is, probably set a bool to true in the ctor, wahtever it is the function does.

Добавить комментарий