mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 23:21:12 +02:00
Revert "lntest: export attributes of type BitcoindBackendConfig"
[skip ci]
This reverts commit eccf20c5b2
.
This commit is contained in:
@@ -22,12 +22,12 @@ const logDirPattern = "%s/.backendlogs"
|
|||||||
// BitcoindBackendConfig is an implementation of the BackendConfig interface
|
// BitcoindBackendConfig is an implementation of the BackendConfig interface
|
||||||
// backed by a Bitcoind node.
|
// backed by a Bitcoind node.
|
||||||
type BitcoindBackendConfig struct {
|
type BitcoindBackendConfig struct {
|
||||||
RpcHost string
|
rpcHost string
|
||||||
RpcUser string
|
rpcUser string
|
||||||
RpcPass string
|
rpcPass string
|
||||||
ZmqBlockPath string
|
zmqBlockPath string
|
||||||
ZmqTxPath string
|
zmqTxPath string
|
||||||
P2pPort int
|
p2pPort int
|
||||||
rpcClient *rpcclient.Client
|
rpcClient *rpcclient.Client
|
||||||
|
|
||||||
// minerAddr is the p2p address of the miner to connect to.
|
// minerAddr is the p2p address of the miner to connect to.
|
||||||
@@ -43,13 +43,13 @@ var _ BackendConfig = (*BitcoindBackendConfig)(nil)
|
|||||||
func (b BitcoindBackendConfig) GenArgs() []string {
|
func (b BitcoindBackendConfig) GenArgs() []string {
|
||||||
var args []string
|
var args []string
|
||||||
args = append(args, "--bitcoin.node=bitcoind")
|
args = append(args, "--bitcoin.node=bitcoind")
|
||||||
args = append(args, fmt.Sprintf("--bitcoind.rpchost=%v", b.RpcHost))
|
args = append(args, fmt.Sprintf("--bitcoind.rpchost=%v", b.rpcHost))
|
||||||
args = append(args, fmt.Sprintf("--bitcoind.rpcuser=%v", b.RpcUser))
|
args = append(args, fmt.Sprintf("--bitcoind.rpcuser=%v", b.rpcUser))
|
||||||
args = append(args, fmt.Sprintf("--bitcoind.rpcpass=%v", b.RpcPass))
|
args = append(args, fmt.Sprintf("--bitcoind.rpcpass=%v", b.rpcPass))
|
||||||
args = append(args, fmt.Sprintf("--bitcoind.zmqpubrawblock=%v",
|
args = append(args, fmt.Sprintf("--bitcoind.zmqpubrawblock=%v",
|
||||||
b.ZmqBlockPath))
|
b.zmqBlockPath))
|
||||||
args = append(args, fmt.Sprintf("--bitcoind.zmqpubrawtx=%v",
|
args = append(args, fmt.Sprintf("--bitcoind.zmqpubrawtx=%v",
|
||||||
b.ZmqTxPath))
|
b.zmqTxPath))
|
||||||
|
|
||||||
return args
|
return args
|
||||||
}
|
}
|
||||||
@@ -184,12 +184,12 @@ func newBackend(miner string, netParams *chaincfg.Params, extraArgs []string) (
|
|||||||
}
|
}
|
||||||
|
|
||||||
bd := BitcoindBackendConfig{
|
bd := BitcoindBackendConfig{
|
||||||
RpcHost: rpcHost,
|
rpcHost: rpcHost,
|
||||||
RpcUser: rpcUser,
|
rpcUser: rpcUser,
|
||||||
RpcPass: rpcPass,
|
rpcPass: rpcPass,
|
||||||
ZmqBlockPath: zmqBlockAddr,
|
zmqBlockPath: zmqBlockAddr,
|
||||||
ZmqTxPath: zmqTxAddr,
|
zmqTxPath: zmqTxAddr,
|
||||||
P2pPort: p2pPort,
|
p2pPort: p2pPort,
|
||||||
rpcClient: client,
|
rpcClient: client,
|
||||||
minerAddr: miner,
|
minerAddr: miner,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user