lntest: surface bitcoin backend rpc credentials

[skip ci]
This commit is contained in:
Harsha Goli committed 2022-01-10 14:49:10 -05:00
1 parent fd63301dc5
commit 69ae56ad5c
4 files changed
+20

No files matched your search

+5
View File
@@ -67,6 +67,11 @@ func (b BtcdBackendConfig) DisconnectMiner() error {
return b.harness.Client.Node(btcjson.NDisconnect, b.minerAddr, &temp)
}
// Credentials returns the rpc username, password and host for the backend.
func (b BtcdBackendConfig) Credentials() (string, string, string, error) {
return b.rpcConfig.User, b.rpcConfig.Pass, b.rpcConfig.Host, nil
}
// Name returns the name of the backend type.
func (b BtcdBackendConfig) Name() string {
return "btcd"