aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2023-08-21 16:55:47 -0400
committerPieter Wuille <pieter@wuille.net>2023-10-02 18:09:53 -0400
commit62d21ee0974b582a6a32aa97ee35ef51c977ea4b (patch)
tree2ba15baa14d626ce9573fd9d175ded0dfe3b322d /src/rpc
parenta4706bc877504057e8522c929cc0704d3eaa7302 (diff)
net: use V2Transport when NODE_P2P_V2 service flag is present
Co-authored-by: Dhruv Mehta <856960+dhruv@users.noreply.github.com>
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
index 6af62641bd..86d3eef436 100644
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -311,7 +311,7 @@ static RPCHelpMan addnode()
if (command == "onetry")
{
CAddress addr;
- connman.OpenNetworkConnection(addr, /*fCountFailure=*/false, /*grantOutbound=*/nullptr, node_arg.c_str(), ConnectionType::MANUAL);
+ connman.OpenNetworkConnection(addr, /*fCountFailure=*/false, /*grantOutbound=*/nullptr, node_arg.c_str(), ConnectionType::MANUAL, /*use_v2transport=*/false);
return UniValue::VNULL;
}