mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-13 22:41:25 +02:00
The setup loop inserts transactions through raw mapWallet.emplace(), which does not populate m_txos. Since AvailableCoins and FetchSelectedInputs now look up coins through m_txos, coin selection is structurally unreachable. Call RefreshTXOsFromTx after each insertion so the wallet's TXO index reflects the inserted outputs.