config: add an option to pass in a hex-encoded rpc cert (--rawrpccert)
This commit adds an option to pass in a raw hex-encoded rpc cert via lnd’s configuration file. Such a change allows for programmatically creating lnd nodes which can connect to an existing btcd instance without requiring a file for the rpc cert to be specified. Additionally, this commit makes the creation of an integration testing harness easier.
This commit is contained in:
2 files changed
+29
-9
No files matched your search
@@ -63,6 +63,7 @@ type config struct {
|
||||
RPCPass string `short:"P" long:"rpcpass" default-mask:"-" description:"Password for RPC connections"`
|
||||
|
||||
RPCCert string `long:"rpccert" description:"File containing btcd's certificate file"`
|
||||
RawRPCCert string `long:"rawrpccert" description:"The raw bytes of btcd's PEM-encoded certificate chain which will be used to authenticate the RPC connection."`
|
||||
SPVHostAdr string `long:"spvhostadr" description:"Address of full bitcoin node. It is used in SPV mode."`
|
||||
TestNet3 bool `long:"testnet" description:"Use the test network"`
|
||||
SimNet bool `long:"simnet" description:"Use the simulation test network"`
|
||||
|
||||
Reference in new issue
Block a user