From 24f847890d97d4193a73b04a6ba4026c08ac0c86 Mon Sep 17 00:00:00 2001 From: lazar Date: Thu, 26 Sep 2024 17:09:08 +0200 Subject: [PATCH] cleanup --- itest/e2e_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/itest/e2e_test.go b/itest/e2e_test.go index aa0c60c..2a81a05 100644 --- a/itest/e2e_test.go +++ b/itest/e2e_test.go @@ -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 @@ -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