Skip to content

Commit 6377883

Browse files
random-zebraFuzzbawls
authored andcommitted
[BUG][Tests] Fix remote nodes switched ports in PivxTier2TestFramework
Github-Pull: #2103 Rebased-From: b878bff
1 parent 73864a0 commit 6377883

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/activemasternode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ OperationResult initMasternode(const std::string& _strMasterNodePrivKey, const s
5555

5656
// Peer port needs to match the masternode public one for IPv4 and IPv6.
5757
// Onion can run in other ports because those are behind a hidden service which has the public port fixed to the default port.
58-
if (nPort != GetListenPort() && !addrTest.IsTor() && !params.IsRegTestNet()) {
58+
if (nPort != GetListenPort() && !addrTest.IsTor()) {
5959
return errorOut(strprintf(_("Invalid -masternodeaddr port %d, isn't the same as the peer port %d"),
6060
nPort, GetListenPort()));
6161
}

test/functional/test_framework/test_framework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,8 +1208,8 @@ def setup_2_masternodes_network(self):
12081208
self.stake(1)
12091209
time.sleep(3)
12101210
self.advance_mocktime(10)
1211-
remoteOnePort = p2p_port(self.remoteTwoPos)
1212-
remoteTwoPort = p2p_port(self.remoteOnePos)
1211+
remoteOnePort = p2p_port(self.remoteOnePos)
1212+
remoteTwoPort = p2p_port(self.remoteTwoPos)
12131213
self.remoteOne.initmasternode(self.mnOnePrivkey, "127.0.0.1:"+str(remoteOnePort))
12141214
self.remoteTwo.initmasternode(self.mnTwoPrivkey, "127.0.0.1:"+str(remoteTwoPort))
12151215

0 commit comments

Comments
 (0)