Post
Topic
Board Announcements (Altcoins)
Re: [ANN] YupCoin [YUP] Pos with Masternodes and Decentralized Governance
by
rewse
on 27/11/2017, 01:11:14 UTC
I'm having issues starting my Masternode from the Windows wallet (hot-cold config, with actual server running on a Linux server fine).

When I try to start my masternode from the Windows wallet I get the error:

"CMasternodeBroadcast::Create -- Invalid IP address 94.176.233.84, masternode="

Obviously that is not an invalid IP address...  Any suggestions (apart from a new VPS, which would be a pain and may not resolve it)?
Are you sure that you have correct configs? Show your yup.conf from Linux and masternode.conf from Win.

I'm pretty sure about the config, I run MN for several other coins.

yup.conf in the Linux VPS:

Quote
rpcuser=[Short Random String]
rpcpassword=[Long Random String]
rpcconnect=127.0.0.1

server=1
listen=1
daemon=1

masternode=1
masternodeprivkey=[Output from Masternode Genkey in Windows wallet]

Masternode.conf in Windows wallet:

(commented out lines not included)
Quote
mn1 94.176.233.84:1237 [Output from Masternode Genkey in Windows wallet] [Output from Masternode Outputs, e.g. abc...XYZ 0]

Update: my reading of the issue is that this function in masternode.cpp is failing to validate the IP address:

Code:
bool CMasternode::IsValidNetAddr()
{
    // TODO: regtest is fine with any addresses for now,
    // should probably be a bit smarter if one day we start to implement tests for this
    return Params().NetworkID() == CBaseChainParams::REGTEST ||
           (IsReachable(addr) && addr.IsRoutable());
}

I can't see any obvious issue with IsReachable() (code from net.cpp below):

Code:
/** check whether a given address is in a network we can probably connect to */
bool IsReachable(const CNetAddr& addr)
{
    enum Network net = addr.GetNetwork();
    return IsReachable(net);
}

I can only conclude that it is failing IsRoutable() or CBaseChainParams::REGTEST.
Looks like all fine. But try to add to yup.conf:
masternodeaddr=94.176.233.84:1237
externalip=94.176.233.84