| 565 | const static auto ABSENT_FLAGS = {NO_ENTRY}; |
| 566 | |
| 567 | static 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 | |
| 579 | static size_t InsertCoinsMapEntry(CCoinsMap& map, CAmount value, char flags) |
| 580 | { |
no test coverage detected