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

Method Dseep

src/activemasternode.cpp:150–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool CActiveMasternode::Dseep(std::string& errorMessage) {
151 if (status != MASTERNODE_IS_CAPABLE && status != MASTERNODE_REMOTELY_ENABLED) {
152 errorMessage = "masternode is not in a running status";
153 LogPrintf("CActiveMasternode::Dseep() - Error: %s\n", errorMessage.c_str());
154 return false;
155 }
156
157 CPubKey pubKeyMasternode;
158 CKey keyMasternode;
159
160 if (!darkSendSigner.SetKey(strMasterNodePrivKey, errorMessage, keyMasternode, pubKeyMasternode)) {
161 LogPrintf("Register::ManageStatus() - Error upon calling SetKey: %s\n", errorMessage.c_str());
162 return false;
163 }
164
165 return Dseep(vin, service, keyMasternode, pubKeyMasternode, errorMessage, false);
166}
167
168bool CActiveMasternode::Dseep(CTxIn vin, CService service, CKey keyMasternode, CPubKey pubKeyMasternode, std::string& retErrorMessage, bool stop) {
169 std::string errorMessage;

Callers

nothing calls this directly

Calls 7

GetAdjustedTimeFunction · 0.85
UpdateLastSeenMethod · 0.80
SetKeyMethod · 0.45
ToStringMethod · 0.45
SignMessageMethod · 0.45
VerifyMessageMethod · 0.45

Tested by

no test coverage detected