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

Function SetCoinsValue

src/test/coins_tests.cpp:543–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541const static auto ABSENT_FLAGS = {NO_ENTRY};
542
543static void SetCoinsValue(CAmount value, Coin& coin)
544{
545 assert(value != ABSENT);
546 coin.Clear();
547 assert(coin.IsSpent());
548 if (value != PRUNED) {
549 coin.out.nValue = value;
550 coin.nHeight = 1;
551 assert(!coin.IsSpent());
552 }
553}
554
555static size_t InsertCoinsMapEntry(CCoinsMap& map, CAmount value, char flags)
556{

Callers 1

InsertCoinsMapEntryFunction · 0.85

Calls 2

ClearMethod · 0.45
IsSpentMethod · 0.45

Tested by

no test coverage detected