wallet refactor: use CWalletTx member functions to determine tx state

This commit is contained in:
ishaanam committed 2024-03-15 18:03:42 -04:00
1 parent ffe5ff1fb6
commit d64922b590
4 files changed
+6 -12

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ WalletTxStatus MakeWalletTxStatus(const CWallet& wallet, const CWalletTx& wtx)
result.is_trusted = CachedTxIsTrusted(wallet, wtx);
result.is_abandoned = wtx.isAbandoned();
result.is_coinbase = wtx.IsCoinBase();
result.is_in_main_chain = wallet.IsTxInMainChain(wtx);
result.is_in_main_chain = wtx.isConfirmed();
return result;
}