@@ -339,7 +339,7 @@ BOOST_FIXTURE_TEST_CASE(importwallet_rescan, TestChain100Setup)
339
339
BOOST_FIXTURE_TEST_CASE (coin_mark_dirty_immature_credit, TestChain100Setup)
340
340
{
341
341
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 }};
343
343
344
344
LOCK (wallet.cs_wallet );
345
345
wallet.SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -373,7 +373,7 @@ static int64_t AddTx(ChainstateManager& chainman, CWallet& wallet, uint32_t lock
373
373
block = &inserted.first ->second ;
374
374
block->nTime = blockTime;
375
375
block->phashBlock = &hash;
376
- state = TxStateConfirmed{hash, block->nHeight , /* position_in_block =*/ 0 };
376
+ state = TxStateConfirmed{hash, block->nHeight , /* index =*/ 0 };
377
377
}
378
378
return wallet.AddToWallet (MakeTransactionRef (tx), state, [&](CWalletTx& wtx, bool /* new_tx */ ) {
379
379
// Assign wtx.m_state to simplify test and avoid the need to simulate
@@ -540,7 +540,7 @@ class ListCoinsTestingSetup : public TestChain100Setup
540
540
wallet->SetLastBlockProcessed (wallet->GetLastBlockHeight () + 1 , m_node.chainman ->ActiveChain ().Tip ()->GetBlockHash ());
541
541
auto it = wallet->mapWallet .find (tx->GetHash ());
542
542
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 };
544
544
return it->second ;
545
545
}
546
546
0 commit comments