| 957 | } |
| 958 | |
| 959 | bool Stake::GetProof(const uint256& h, uint256& proof) const { |
| 960 | auto it = mapProofOfStake.find(h); |
| 961 | if (it != mapProofOfStake.end()) { |
| 962 | proof = it->second; |
| 963 | return true; |
| 964 | } |
| 965 | return false; |
| 966 | } |
| 967 | |
| 968 | void Stake::SetProof(const uint256& h, const uint256& proof) { |
| 969 | mapProofOfStake.emplace(h, proof); |
no test coverage detected