| 4418 | |
| 4419 | |
| 4420 | bool CWalletTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state) |
| 4421 | { |
| 4422 | // We must set fInMempool here - while it will be re-set to true by the |
| 4423 | // entered-mempool callback, if we did not there would be a race where a |
| 4424 | // user could call sendmoney in a loop and hit spurious out of funds errors |
| 4425 | // because we think that this newly generated transaction's change is |
| 4426 | // unavailable as we're not yet aware that it is in the mempool. |
| 4427 | bool ret = ::AcceptToMemoryPool(mempool, state, tx, nullptr /* pfMissingInputs */, |
| 4428 | nullptr /* plTxnReplaced */, false /* bypass_limits */, nAbsurdFee); |
| 4429 | fInMempool |= ret; |
| 4430 | return ret; |
| 4431 | } |
| 4432 | |
| 4433 | void CWallet::LearnRelatedScripts(const CPubKey& key, OutputType type) |
| 4434 | { |
no test coverage detected