Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/wallet_tests.cpp
Show First 20 Lines • Show All 861 Lines • ▼ Show 20 Lines | BOOST_CHECK_EQUAL(addtx_count, 4); | ||||
BOOST_CHECK_EQUAL(wallet->mapWallet.count(block_tx.GetId()), 1U); | BOOST_CHECK_EQUAL(wallet->mapWallet.count(block_tx.GetId()), 1U); | ||||
BOOST_CHECK_EQUAL(wallet->mapWallet.count(mempool_tx.GetId()), 1U); | BOOST_CHECK_EQUAL(wallet->mapWallet.count(mempool_tx.GetId()), 1U); | ||||
} | } | ||||
TestUnloadWallet(std::move(wallet)); | TestUnloadWallet(std::move(wallet)); | ||||
} | } | ||||
BOOST_FIXTURE_TEST_CASE(ZapSelectTx, TestChain100Setup) { | BOOST_FIXTURE_TEST_CASE(ZapSelectTx, TestChain100Setup) { | ||||
NodeContext node; | auto chain = interfaces::MakeChain(m_node, Params()); | ||||
auto chain = interfaces::MakeChain(node, Params()); | |||||
auto wallet = TestLoadWallet(*chain); | auto wallet = TestLoadWallet(*chain); | ||||
CKey key; | CKey key; | ||||
key.MakeNewKey(true); | key.MakeNewKey(true); | ||||
AddKey(*wallet, key); | AddKey(*wallet, key); | ||||
std::string error; | std::string error; | ||||
m_coinbase_txns.push_back( | m_coinbase_txns.push_back( | ||||
CreateAndProcessBlock({}, | CreateAndProcessBlock({}, | ||||
Show All 29 Lines |