MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / HasNoInputsOf

Method HasNoInputsOf

src/txmempool.cpp:732–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732bool CTxMemPool::HasNoInputsOf(const CTransaction &tx) const
733{
734 for (unsigned int i = 0; i < tx.vin.size(); i++)
735 if (exists(tx.vin[i].prevout.hash))
736 return false;
737 return true;
738}
739
740CCoinsViewMemPool::CCoinsViewMemPool(CCoinsView* baseIn, const CTxMemPool& mempoolIn) : CCoinsViewBacked(baseIn), mempool(mempoolIn) { }
741

Callers 2

SubmitPackageMethod · 0.80

Calls 2

existsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected