| 541 | const static auto ABSENT_FLAGS = {NO_ENTRY}; |
| 542 | |
| 543 | static 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 | |
| 555 | static size_t InsertCoinsMapEntry(CCoinsMap& map, CAmount value, char flags) |
| 556 | { |
no test coverage detected