src/activemasternode.cpp
// Send stop dseep to network for main masternode
Send stop dseep to network for main masternode
Send stop dseep to network for main masternode
bool CActiveMasternode::StopMasterNode(std::string& errorMessage) {
    if(status != MASTERNODE_IS_CAPABLE && status != MASTERNODE_REMOTELY_ENABLED) {
        errorMessage = "masternode is not in a running status";
        LogPrintf("CActiveMasternode::StopMasterNode() - Error: %s\n", errorMessage.c_str());
        return false;
    }
    status = MASTERNODE_STOPPED;
    CPubKey pubKeyMasternode;
    CKey keyMasternode;
    if(!darkSendSigner.SetKey(strMasterNodePrivKey, errorMessage, keyMasternode, pubKeyMasternode))
    {
        LogPrintf("Register::ManageStatus() - Error upon calling SetKey: %s\n", errorMessage.c_str());
        return false;
    }
    return StopMasterNode(vin, service, keyMasternode, pubKeyMasternode, errorMessage);
}
bool CActiveMasternode :: StopMasterNode ( std :: string & errorMessage ) { if ( status != MASTERNODE_IS_CAPABLE && status != MASTERNODE_REMOTELY_ENABLED ) { errorMessage = " " ; LogPrintf ( " \n " , errorMessage . c_str ( ) ) ; return false ; } status = MASTERNODE_STOPPED ; CPubKey pubKeyMasternode ; CKey keyMasternode ; if ( ! darkSendSigner . SetKey ( strMasterNodePrivKey , errorMessage , keyMasternode , pubKeyMasternode ) ) { LogPrintf ( " \n " , errorMessage . c_str ( ) ) ; return false ; } return StopMasterNode ( vin , service , keyMasternode , pubKeyMasternode , errorMessage ) ; }
Send stop dseep to network for main masternode
Send stop dseep to network for main masternode