| 568 | } |
| 569 | |
| 570 | void GetCoinsMapEntry(const CCoinsMap& map, CAmount& value, char& flags) |
| 571 | { |
| 572 | auto it = map.find(OUTPOINT); |
| 573 | if (it == map.end()) { |
| 574 | value = ABSENT; |
| 575 | flags = NO_ENTRY; |
| 576 | } else { |
| 577 | if (it->second.coin.IsSpent()) { |
| 578 | value = PRUNED; |
| 579 | } else { |
| 580 | value = it->second.coin.out.nValue; |
| 581 | } |
| 582 | flags = it->second.flags; |
| 583 | assert(flags != NO_ENTRY); |
| 584 | } |
| 585 | } |
| 586 | |
| 587 | void WriteCoinsViewEntry(CCoinsView& view, CAmount value, char flags) |
| 588 | { |
no test coverage detected