We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f94e3e commit 20afc99Copy full SHA for 20afc99
src/evo/netinfo.cpp
@@ -37,9 +37,11 @@ NetInfoStatus MnNetInfo::ValidateService(const CService& service)
37
}
38
39
const auto default_port_main = MainParams().GetDefaultPort();
40
- if (IsNodeOnMainnet() && service.GetPort() != default_port_main) {
41
- // Must use mainnet port on mainnet
42
- return NetInfoStatus::BadPort;
+ if (IsNodeOnMainnet()) {
+ if (service.GetPort() != default_port_main) {
+ // Must use mainnet port on mainnet
43
+ return NetInfoStatus::BadPort;
44
+ }
45
} else if (service.GetPort() == default_port_main) {
46
// Using mainnet port prohibited outside of mainnet
47
return NetInfoStatus::BadPort;
0 commit comments