| 39 | |
| 40 | public: |
| 41 | [[nodiscard]] bool GetCoin(const COutPoint& outpoint, Coin& coin) const override |
| 42 | { |
| 43 | std::map<COutPoint, Coin>::const_iterator it = map_.find(outpoint); |
| 44 | if (it == map_.end()) { |
| 45 | return false; |
| 46 | } |
| 47 | coin = it->second; |
| 48 | if (coin.IsSpent() && InsecureRandBool() == 0) { |
| 49 | // Randomly return false in case of an empty entry. |
| 50 | return false; |
| 51 | } |
| 52 | return true; |
| 53 | } |
| 54 | |
| 55 | uint256 GetBestBlock() const override { return hashBestBlock_; } |
| 56 |
no test coverage detected