| 644 | } |
| 645 | |
| 646 | static MaybeCoin GetCoinsMapEntry(const CCoinsMap& map, const COutPoint& outp = OUTPOINT) |
| 647 | { |
| 648 | if (auto it{map.find(outp)}; it != map.end()) { |
| 649 | return CoinEntry{ |
| 650 | it->second.coin.IsSpent() ? SPENT : it->second.coin.out.nValue, |
| 651 | CoinEntry::ToState(it->second.IsDirty(), it->second.IsFresh())}; |
| 652 | } |
| 653 | return MISSING; |
| 654 | } |
| 655 | |
| 656 | static void WriteCoinsViewEntry(CCoinsView& view, const MaybeCoin& cache_coin) |
| 657 | { |
no test coverage detected