MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / AcceptToMemoryPool

Method AcceptToMemoryPool

src/wallet/wallet.cpp:4420–4431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4418
4419
4420bool 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
4433void CWallet::LearnRelatedScripts(const CPubKey& key, OutputType type)
4434{

Callers 2

CommitTransactionMethod · 0.80

Calls 1

AcceptToMemoryPoolFunction · 0.85

Tested by

no test coverage detected