| 50 | explicit CCoinsViewTest(FastRandomContext& rng) : m_rng{rng} {} |
| 51 | |
| 52 | std::optional<Coin> GetCoin(const COutPoint& outpoint) const override |
| 53 | { |
| 54 | if (auto it{map_.find(outpoint)}; it != map_.end() && !it->second.IsSpent()) return it->second; |
| 55 | return std::nullopt; |
| 56 | } |
| 57 | |
| 58 | uint256 GetBestBlock() const override { return hashBestBlock_; } |
| 59 |
no test coverage detected