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

Method StopMasterNode

src/activemasternode.cpp:110–121  ·  view source on GitHub ↗

Send stop dseep to network for remote masternode

Source from the content-addressed store, hash-verified

108
109// Send stop dseep to network for remote masternode
110bool CActiveMasternode::StopMasterNode(std::string strService, std::string strKeyMasternode, std::string& errorMessage) {
111 CTxIn vin;
112 CKey keyMasternode;
113 CPubKey pubKeyMasternode;
114
115 if (!darkSendSigner.SetKey(strKeyMasternode, errorMessage, keyMasternode, pubKeyMasternode)) {
116 LogPrintf("CActiveMasternode::StopMasterNode() - Error: %s\n", errorMessage.c_str());
117 return false;
118 }
119
120 return StopMasterNode(vin, CService(strService), keyMasternode, pubKeyMasternode, errorMessage);
121}
122
123// Send stop dseep to network for main masternode
124bool CActiveMasternode::StopMasterNode(std::string& errorMessage) {

Callers 3

masternodeFunction · 0.80
on_stopButton_clickedMethod · 0.80

Calls 3

UnlockCoinMethod · 0.80
CServiceClass · 0.70
SetKeyMethod · 0.45

Tested by

no test coverage detected