Changeset View
Changeset View
Standalone View
Standalone View
src/test/utxocommit_tests.cpp
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
BOOST_AUTO_TEST_CASE(utxo_commit_addcursor) { | BOOST_AUTO_TEST_CASE(utxo_commit_addcursor) { | ||||
// Test adding a CCoinView Cursor to a CUtxoCommit | // Test adding a CCoinView Cursor to a CUtxoCommit | ||||
// This simulates the initial upgrade where the commitment stored in | // This simulates the initial upgrade where the commitment stored in | ||||
// LevelDB must be generated from the existing UTXO set. | // LevelDB must be generated from the existing UTXO set. | ||||
const int count = 50000; | const int count = 1000000; | ||||
fPrintToConsole = true; | |||||
// We use the pcoinviewdb provided by the test fixture's TestingSetup | // We use the pcoinviewdb provided by the test fixture's TestingSetup | ||||
CCoinsViewCache cache(pcoinsdbview); | CCoinsViewCache cache(pcoinsdbview); | ||||
cache.SetBestBlock(InsecureRand256()); | cache.SetBestBlock(InsecureRand256()); | ||||
// We will compare the commitment generated step-by-step, and the one | // We will compare the commitment generated step-by-step, and the one | ||||
// created | // created | ||||
// from cursor | // from cursor | ||||
Show All 31 Lines |