MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / Spend

Method Spend

src/coins.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35bool CCoins::Spend(uint32_t nPos)
36{
37 if (nPos >= vout.size() || vout[nPos].IsNull())
38 return false;
39 vout[nPos].SetNull();
40 Cleanup();
41 return true;
42}
43
44bool CCoinsView::GetCoins(const uint256 &txid, CCoins &coins) const { return false; }
45bool CCoinsView::HaveCoins(const uint256 &txid) const { return false; }

Callers 2

pruneSpentMethod · 0.80
BOOST_FOREACHFunction · 0.80

Calls 4

CleanupClass · 0.85
sizeMethod · 0.45
IsNullMethod · 0.45
SetNullMethod · 0.45

Tested by

no test coverage detected