src/fn-activity.cpp
// Send stop fnep to network for main Fundamentalnode
Send stop fnep to network for main Fundamentalnode
Send stop fnep to network for main Fundamentalnode
bool CActiveFundamentalnode::StopFundamentalNode(std::string& errorMessage) {
    if(status != FUNDAMENTALNODE_IS_CAPABLE && status != FUNDAMENTALNODE_REMOTELY_ENABLED) {
        errorMessage = "Fundamentalnode is not in a running status";
        LogPrintf("CActiveFundamentalnode::StopFundamentalNode() - Error: %s\n", errorMessage.c_str());
        return false;
    }
    status = FUNDAMENTALNODE_STOPPED;
    CPubKey pubKeyFundamentalnode;
    CKey keyFundamentalnode;
    if(!fnSigner.SetKey(strFundamentalNodePrivKey, errorMessage, keyFundamentalnode, pubKeyFundamentalnode))
    {
        LogPrintf("Register::ManageStatus() - Error upon calling SetKey: %s\n", errorMessage.c_str());
        return false;
    }
    return StopFundamentalNode(vin, service, keyFundamentalnode, pubKeyFundamentalnode, errorMessage);
}
bool CActiveFundamentalnode :: StopFundamentalNode ( std :: string & errorMessage ) { if ( status != FUNDAMENTALNODE_IS_CAPABLE && status != FUNDAMENTALNODE_REMOTELY_ENABLED ) { errorMessage = " " ; LogPrintf ( " \n " , errorMessage . c_str ( ) ) ; return false ; } status = FUNDAMENTALNODE_STOPPED ; CPubKey pubKeyFundamentalnode ; CKey keyFundamentalnode ; if ( ! fnSigner . SetKey ( strFundamentalNodePrivKey , errorMessage , keyFundamentalnode , pubKeyFundamentalnode ) ) { LogPrintf ( " \n " , errorMessage . c_str ( ) ) ; return false ; } return StopFundamentalNode ( vin , service , keyFundamentalnode , pubKeyFundamentalnode , errorMessage ) ; }
Send stop fnep to network for main Fundamentalnode
Send stop fnep to network for main Fundamentalnode