mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-04 12:31:39 +02:00
multi: new bitcoind rpcpolling backend for itests
This commit is contained in:
18
config.go
18
config.go
@ -1777,11 +1777,19 @@ func parseRPCParams(cConfig *lncfg.Chain, nodeConfig interface{},
|
||||
}
|
||||
}
|
||||
|
||||
// If all of RPCUser, RPCPass, ZMQBlockHost, and ZMQTxHost are
|
||||
// set, we assume those parameters are good to use.
|
||||
if conf.RPCUser != "" && conf.RPCPass != "" &&
|
||||
conf.ZMQPubRawBlock != "" && conf.ZMQPubRawTx != "" {
|
||||
return nil
|
||||
if conf.RPCUser != "" && conf.RPCPass != "" {
|
||||
// If all of RPCUser, RPCPass, ZMQBlockHost, and
|
||||
// ZMQTxHost are set, we assume those parameters are
|
||||
// good to use.
|
||||
if conf.ZMQPubRawBlock != "" && conf.ZMQPubRawTx != "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
// If RPCUser and RPCPass are set and RPCPolling is
|
||||
// enabled, we assume the parameters are good to use.
|
||||
if conf.RPCPolling {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// Get the daemon name for displaying proper errors.
|
||||
|
Reference in New Issue
Block a user