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

Method CheckSignature

src/darksend.cpp:2083–2099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2081}
2082
2083bool CDarksendQueue::CheckSignature() {
2084 for (CMasterNode & mn : vecMasternodes) {
2085
2086 if (mn.vin == vin) {
2087 std::string strMessage = vin.ToString() + boost::lexical_cast<std::string>(nDenom) + boost::lexical_cast<std::string>(time) + boost::lexical_cast<std::string>(ready);
2088
2089 std::string errorMessage = "";
2090 if (!darkSendSigner.VerifyMessage(mn.pubkey2, vchSig, strMessage, errorMessage)) {
2091 return error("CDarksendQueue::CheckSignature() - Got bad masternode address signature %s \n", vin.ToString().c_str());
2092 }
2093
2094 return true;
2095 }
2096 }
2097
2098 return false;
2099}
2100
2101
2102//TODO: Rename/move to core

Callers 1

ProcessMessageDarksendFunction · 0.45

Calls 3

errorFunction · 0.85
ToStringMethod · 0.45
VerifyMessageMethod · 0.45

Tested by

no test coverage detected