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

Function SetCoinsValue

src/test/coins_tests.cpp:567–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565const static auto ABSENT_FLAGS = {NO_ENTRY};
566
567static void SetCoinsValue(CAmount value, Coin& coin)
568{
569 assert(value != ABSENT);
570 coin.Clear();
571 assert(coin.IsSpent());
572 if (value != SPENT) {
573 coin.out.nValue = value;
574 coin.nHeight = 1;
575 assert(!coin.IsSpent());
576 }
577}
578
579static size_t InsertCoinsMapEntry(CCoinsMap& map, CAmount value, char flags)
580{

Callers 1

InsertCoinsMapEntryFunction · 0.85

Calls 2

ClearMethod · 0.45
IsSpentMethod · 0.45

Tested by

no test coverage detected