make mainnetDefaultPort static
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
a685391c77
commit
46dd6a3575
@ -27,7 +27,7 @@ static bool CheckService(const uint256& proTxHash, const ProTx& proTx, CValidati
|
||||
return state.DoS(10, false, REJECT_INVALID, "bad-protx-addr");
|
||||
}
|
||||
|
||||
int mainnetDefaultPort = CreateChainParams(CBaseChainParams::MAIN)->GetDefaultPort();
|
||||
static int mainnetDefaultPort = CreateChainParams(CBaseChainParams::MAIN)->GetDefaultPort();
|
||||
if (Params().NetworkIDString() == CBaseChainParams::MAIN) {
|
||||
if (proTx.addr.GetPort() != mainnetDefaultPort) {
|
||||
return state.DoS(10, false, REJECT_INVALID, "bad-protx-addr-port");
|
||||
|
Loading…
Reference in New Issue
Block a user