Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Sep 26, 2024
1 parent 5b33e88 commit 24f8478
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions itest/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func keyToAddr(key *btcec.PrivateKey, net *chaincfg.Params) (btcutil.Address, er
return pubKeyAddr.AddressPubKeyHash(), nil
}

func defaultStakerConfig(t *testing.T, walletName, passphrase, host string) (*stakercfg.Config, *rpcclient.Client) {
func defaultStakerConfig(t *testing.T, walletName, passphrase, bitcoindHost string) (*stakercfg.Config, *rpcclient.Client) {
defaultConfig := stakercfg.DefaultConfig()

// both wallet and node are bicoind
Expand All @@ -91,14 +91,9 @@ func defaultStakerConfig(t *testing.T, walletName, passphrase, host string) (*st
defaultConfig.BtcNodeBackendConfig.FeeMode = "dynamic"
defaultConfig.BtcNodeBackendConfig.EstimationMode = types.DynamicFeeEstimation

bitcoindHost := "127.0.0.1:18443"
bitcoindUser := "user"
bitcoindPass := "pass"

if host != "" {
bitcoindHost = host
}

// Wallet configuration
defaultConfig.WalletRpcConfig.Host = bitcoindHost
defaultConfig.WalletRpcConfig.User = bitcoindUser
Expand Down

0 comments on commit 24f8478

Please sign in to comment.