* 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 ... */
| 148 | * trusted and is eligible to be abandoned ... |
| 149 | */ |
| 150 | static void RefreshMempoolStatus(CWalletTx& tx, interfaces::Chain& chain) |
| 151 | { |
| 152 | if (chain.isInMempool(tx.GetHash())) { |
| 153 | tx.m_state = TxStateInMempool(); |
| 154 | } else if (tx.state<TxStateInMempool>()) { |
| 155 | tx.m_state = TxStateInactive(); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | bool AddWallet(WalletContext& context, const std::shared_ptr<CWallet>& wallet) |
| 160 | { |
no test coverage detected