We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24df9af commit 6ba8f30Copy full SHA for 6ba8f30
src/wallet/wallet.cpp
@@ -4114,6 +4114,11 @@ int CMerkleTx::GetBlocksToMaturity() const
4114
4115
bool CWalletTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state)
4116
{
4117
+ // Quick check to avoid re-setting fInMempool to false
4118
+ if (mempool.exists(tx->GetHash())) {
4119
+ return false;
4120
+ }
4121
+
4122
// We must set fInMempool here - while it will be re-set to true by the
4123
// entered-mempool callback, if we did not there would be a race where a
4124
// user could call sendmoney in a loop and hit spurious out of funds errors
0 commit comments