MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetProof

Method GetProof

src/stake.cpp:959–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959bool 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
968void Stake::SetProof(const uint256& h, const uint256& proof) {
969 mapProofOfStake.emplace(h, proof);

Callers 4

WriteBlockIndexMethod · 0.80
LoadBlockIndexGutsMethod · 0.80
AddToBlockIndexFunction · 0.80
CheckWorkFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected