MCPcopy Create free account
hub / github.com/ElementsProject/elements / native_key

Function native_key

src/coins.cpp:47–49  ·  view source on GitHub ↗

ELEMENTS: Create a CCoinsMapKey for non-PEGIN utxo.

Source from the content-addressed store, hash-verified

45// ELEMENTS:
46// Create a CCoinsMapKey for non-PEGIN utxo.
47static inline CCoinsMapKey native_key(const COutPoint& outpoint) {
48 return std::make_pair(uint256(), outpoint);
49}
50
51CCoinsMap::iterator CCoinsViewCache::FetchCoin(const COutPoint &outpoint) const {
52 CCoinsMap::iterator it = cacheCoins.find(native_key(outpoint));

Callers 5

FetchCoinMethod · 0.85
AddCoinMethod · 0.85
HaveCoinInCacheMethod · 0.85
UncacheMethod · 0.85

Calls 1

uint256Class · 0.70

Tested by

no test coverage detected