aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authorJeetraj <jeetrajsinh2005@gmail.com>2026-04-09 11:05:47 +0530
committerJeetraj <jeetrajsinh2005@gmail.com>2026-04-10 22:45:53 +0530
commit1d2ae2138a85dd93bc8a0d2c55513c5b5ba4658f (patch)
treec40703177d76ebd1f380607472e229250c3f2e2d /src/p2p
parentee1bbe766317b2197510d038753be62f09c13c00 (diff)
downloadmonzero-core-1d2ae2138a85dd93bc8a0d2c55513c5b5ba4658f.tar.gz
monzero-core-1d2ae2138a85dd93bc8a0d2c55513c5b5ba4658f.tar.xz
monzero-core-1d2ae2138a85dd93bc8a0d2c55513c5b5ba4658f.zip
p2p: isolate regtest from mainnet bootstrap state
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_node.inl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 058bd457b..943061814 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -431,8 +431,9 @@ namespace nodetool
{
bool testnet = command_line::get_arg(vm, cryptonote::arg_testnet_on);
bool stagenet = command_line::get_arg(vm, cryptonote::arg_stagenet_on);
+ bool regtest = command_line::get_arg(vm, cryptonote::arg_regtest_on);
const bool pad_txs = command_line::get_arg(vm, arg_pad_transactions);
- m_nettype = testnet ? cryptonote::TESTNET : stagenet ? cryptonote::STAGENET : cryptonote::MAINNET;
+ m_nettype = testnet ? cryptonote::TESTNET : stagenet ? cryptonote::STAGENET : regtest ? cryptonote::FAKECHAIN : cryptonote::MAINNET;
network_zone& public_zone = m_network_zones[epee::net_utils::zone::public_];
public_zone.m_connect = &public_connect;
@@ -777,6 +778,10 @@ namespace nodetool
{
return get_ip_seed_nodes();
}
+ if (m_nettype == cryptonote::FAKECHAIN)
+ {
+ return {};
+ }
if (!m_enable_dns_seed_nodes)
{
// TODO: a domain can be set through socks, so that the remote side does the lookup for the DNS seed nodes.