mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
rpc: Remove index-based Arg accessor
This commit is contained in:
@@ -401,7 +401,7 @@ static RPCHelpMan addconnection()
|
||||
} else {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, self.ToString());
|
||||
}
|
||||
bool use_v2transport = self.Arg<bool>(2);
|
||||
bool use_v2transport{self.Arg<bool>("v2transport")};
|
||||
|
||||
NodeContext& node = EnsureAnyNodeContext(request.context);
|
||||
CConnman& connman = EnsureConnman(node);
|
||||
|
||||
Reference in New Issue
Block a user