Skip to content

Commit

Permalink
chore: add wallet rpc name to the host connection config
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Aug 16, 2024
1 parent 4e6e9bc commit 4b80c69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion walletcontroller/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func NewRpcWalletController(scfg *stakercfg.Config) (*RpcWalletController, error
scfg.WalletRpcConfig.User,
scfg.WalletRpcConfig.Pass,
scfg.ActiveNetParams.Name,
scfg.WalletConfig.WalletName,
scfg.WalletConfig.WalletPass,
scfg.BtcNodeBackendConfig.ActiveWalletBackend,
&scfg.ActiveNetParams,
Expand All @@ -58,6 +59,7 @@ func NewRpcWalletControllerFromArgs(
user string,
pass string,
network string,
walletName string,
walletPassphrase string,
nodeBackend types.SupportedWalletBackend,
params *chaincfg.Params,
Expand All @@ -66,7 +68,7 @@ func NewRpcWalletControllerFromArgs(
) (*RpcWalletController, error) {

connCfg := &rpcclient.ConnConfig{
Host: host,
Host: host + "/wallet/" + walletName,
User: user,
Pass: pass,
DisableTLS: disableTls,
Expand All @@ -75,6 +77,7 @@ func NewRpcWalletControllerFromArgs(
// we use post mode as it sure it works with either bitcoind or btcwallet
// we may need to re-consider it later if we need any notifications
HTTPPostMode: true,
Params: params.Name,
}

if !connCfg.DisableTLS {
Expand Down

0 comments on commit 4b80c69

Please sign in to comment.