lntest: surface bitcoin backend rpc credentials

[skip ci]
This commit is contained in:
Harsha Goli
2021-12-13 19:05:51 -05:00
parent fd63301dc5
commit 69ae56ad5c
4 changed files with 20 additions and 0 deletions

View File

@@ -64,6 +64,11 @@ func (b BitcoindBackendConfig) DisconnectMiner() error {
return b.rpcClient.AddNode(b.minerAddr, rpcclient.ANRemove)
}
// Credentials returns the rpc username, password and host for the backend.
func (b BitcoindBackendConfig) Credentials() (string, string, string, error) {
return b.rpcUser, b.rpcPass, b.rpcHost, nil
}
// Name returns the name of the backend type.
func (b BitcoindBackendConfig) Name() string {
return "bitcoind"