| 592 | } |
| 593 | |
| 594 | void GetCoinsMapEntry(const CCoinsMap& map, CAmount& value, char& flags) |
| 595 | { |
| 596 | auto it = map.find(OUTPOINT); |
| 597 | if (it == map.end()) { |
| 598 | value = ABSENT; |
| 599 | flags = NO_ENTRY; |
| 600 | } else { |
| 601 | if (it->second.coin.IsSpent()) { |
| 602 | value = SPENT; |
| 603 | } else { |
| 604 | value = it->second.coin.out.nValue.GetAmount(); |
| 605 | } |
| 606 | flags = it->second.flags; |
| 607 | assert(flags != NO_ENTRY); |
| 608 | } |
| 609 | } |
| 610 | |
| 611 | void WriteCoinsViewEntry(CCoinsView& view, CAmount value, char flags) |
| 612 | { |
no test coverage detected