Skip to content

Commit 21db4eb

Browse files
committed
test: fix incorrect named args in wallet tests
1 parent 8b0e776 commit 21db4eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wallet/test/wallet_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ BOOST_FIXTURE_TEST_CASE(importwallet_rescan, TestChain100Setup)
339339
BOOST_FIXTURE_TEST_CASE(coin_mark_dirty_immature_credit, TestChain100Setup)
340340
{
341341
CWallet wallet(m_node.chain.get(), "", m_args, CreateDummyWalletDatabase());
342-
CWalletTx wtx{m_coinbase_txns.back(), TxStateConfirmed{m_node.chainman->ActiveChain().Tip()->GetBlockHash(), m_node.chainman->ActiveChain().Height(), /*position_in_block=*/0}};
342+
CWalletTx wtx{m_coinbase_txns.back(), TxStateConfirmed{m_node.chainman->ActiveChain().Tip()->GetBlockHash(), m_node.chainman->ActiveChain().Height(), /*index=*/0}};
343343

344344
LOCK(wallet.cs_wallet);
345345
wallet.SetWalletFlag(WALLET_FLAG_DESCRIPTORS);
@@ -373,7 +373,7 @@ static int64_t AddTx(ChainstateManager& chainman, CWallet& wallet, uint32_t lock
373373
block = &inserted.first->second;
374374
block->nTime = blockTime;
375375
block->phashBlock = &hash;
376-
state = TxStateConfirmed{hash, block->nHeight, /*position_in_block=*/0};
376+
state = TxStateConfirmed{hash, block->nHeight, /*index=*/0};
377377
}
378378
return wallet.AddToWallet(MakeTransactionRef(tx), state, [&](CWalletTx& wtx, bool /* new_tx */) {
379379
// Assign wtx.m_state to simplify test and avoid the need to simulate
@@ -540,7 +540,7 @@ class ListCoinsTestingSetup : public TestChain100Setup
540540
wallet->SetLastBlockProcessed(wallet->GetLastBlockHeight() + 1, m_node.chainman->ActiveChain().Tip()->GetBlockHash());
541541
auto it = wallet->mapWallet.find(tx->GetHash());
542542
BOOST_CHECK(it != wallet->mapWallet.end());
543-
it->second.m_state = TxStateConfirmed{m_node.chainman->ActiveChain().Tip()->GetBlockHash(), m_node.chainman->ActiveChain().Height(), /*position_in_block=*/1};
543+
it->second.m_state = TxStateConfirmed{m_node.chainman->ActiveChain().Tip()->GetBlockHash(), m_node.chainman->ActiveChain().Height(), /*index=*/1};
544544
return it->second;
545545
}
546546

0 commit comments

Comments
 (0)