You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This implements an idea from Pieter Wuille <[email protected]>
thttps://github.com//issues/28722#issuecomment-2807026958 to
allow the bitcoin-cli client to connect to the node via IPC instead of TCP, if
the ENABLE_IPC cmake option is enabled, and the node has been started with
`-ipcbind`.
The feature can be tested with:
build/bin/bitcoin-node -regtest -ipcbind=unix -debug=ipc
build/bin/bitcoin-cli -regtest -ipcconnect=unix -getinfo
The -ipconnect parameter can also be omitted, since this also commit changes
bitcoin-cli to prefer IPC over HTTP by default.
argsman.AddArg("-stdin", "Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases). When combined with -stdinrpcpass, the first line from standard input is used for the RPC password.", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
109
112
argsman.AddArg("-stdinrpcpass", "Read RPC password from standard input as a single line. When combined with -stdin, the first line from standard input is used for the RPC password. When combined with -stdinwalletpassphrase, -stdinrpcpass consumes the first line, and -stdinwalletpassphrase consumes the second.", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
110
113
argsman.AddArg("-stdinwalletpassphrase", "Read wallet passphrase from standard input as a single line. When combined with -stdin, the first line from standard input is used for the wallet passphrase.", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
114
+
argsman.AddArg("-ipcconnect=<address>", "Connect to bitcoin-node through IPC socket instead of TCP socket to execute requests. Valid <address> values are 'auto' to try to connect to default socket path at <datadir>/node.sock unix' but fall back to TCP if it is not available, 'unix' to connect to the default socket and fail if it isn't available, or 'unix:<socket path>' to connect to a socket at a nonstandard path. -noipcconnect can be specified to not try to use IPC. Default value: auto", ArgsManager::ALLOW_ANY, OptionsCategory::IPC);
// Distributed under the MIT software license, see the accompanying
3
+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Distributed under the MIT software license, see the accompanying
3
+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Distributed under the MIT software license, see the accompanying
3
+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+
#ifndef BITCOIN_INTERFACES_RPC_H
6
+
#defineBITCOIN_INTERFACES_RPC_H
7
+
8
+
#include<memory>
9
+
#include<string>
10
+
11
+
classUniValue;
12
+
enum HTTPStatusCode : int;
13
+
14
+
namespacenode {
15
+
structNodeContext;
16
+
} // namespace node
17
+
18
+
namespaceinterfaces {
19
+
//! Interface giving clients ability to emulate RPC calls.
0 commit comments