* Refresh mempool status so the wallet is in an internally consistent state and * immediately knows the transaction's status: Whether it can be considered * trusted and is eligible to be abandoned ... */
| 109 | * trusted and is eligible to be abandoned ... |
| 110 | */ |
| 111 | static void RefreshMempoolStatus(CWalletTx& tx, interfaces::Chain& chain) |
| 112 | { |
| 113 | if (chain.isInMempool(tx.GetHash())) { |
| 114 | tx.m_state = TxStateInMempool(); |
| 115 | } else if (tx.state<TxStateInMempool>()) { |
| 116 | tx.m_state = TxStateInactive(); |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | bool AddWallet(WalletContext& context, const std::shared_ptr<CWallet>& wallet) |
| 121 | { |
no test coverage detected