Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change default max feerate #154

Merged
merged 4 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ This PR contains a series of PRs on multi-staking support and BTC staking integr
* [#134](https://github.com/babylonlabs-io/btc-staker/pull/134) Removal of both the watch-staking endpoint and the post-approval flow, and reduction of state in the database.
* [#146](https://github.com/babylonlabs-io/btc-staker/pull/146) Sanity check that all transactions are standard
* [#156](https://github.com/babylonlabs-io/btc-staker/pull/156) disable tls in config
* [#154](https://github.com/babylonlabs-io/btc-staker/pull/154) chore: change default max feerate

## v0.15.2

Expand Down
1 change: 1 addition & 0 deletions itest/e2e_restaking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func TestRestakingToConsumerChains(t *testing.T) {
// need to have at least 300 block on testnet as only then segwit is activated.
// Mature output is out which has 100 confirmations, which means 200mature outputs
// will generate 300 blocks
t.Parallel()
numMatureOutputs := uint32(200)
ctx, cancel := context.WithCancel(context.Background())
tm := StartManager(t, ctx, numMatureOutputs)
Expand Down
7 changes: 4 additions & 3 deletions itest/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestSendingStakingTransactionWithPreApproval(t *testing.T) {
params, err := cl.Params()
require.NoError(t, err)

testStakingData := tm.getTestStakingData(t, tm.WalletPubKey, params.MinStakingTime, 10000, 1)
testStakingData := tm.getTestStakingData(t, tm.WalletPubKey, params.MinStakingTime, 100000, 1)

// since transaction never sent to bitcoin,
// tx is not found
Expand Down Expand Up @@ -358,6 +358,7 @@ func TestBitcoindWalletBip322Signing(t *testing.T) {
}

func TestStakeFromPhase1(t *testing.T) {
t.Parallel()
numMatureOutputsInWallet := uint32(200)
ctx, cancel := context.WithCancel(context.Background())
manager, err := containers.NewManager(t)
Expand Down Expand Up @@ -658,7 +659,7 @@ func TestRecoverAfterRestartDuringWithdrawal(t *testing.T) {
params, err := cl.Params()
require.NoError(t, err)

testStakingData := tm.getTestStakingData(t, tm.WalletPubKey, params.MinStakingTime, 10000, 1)
testStakingData := tm.getTestStakingData(t, tm.WalletPubKey, params.MinStakingTime, 100000, 1)

hashed, err := chainhash.NewHash(datagen.GenRandomByteArray(r, 32))
require.NoError(t, err)
Expand Down Expand Up @@ -864,7 +865,7 @@ func TestMultipleWithdrawableStakingTransactions(t *testing.T) {
stakingTime4 := minStakingTime + 2
stakingTime5 := minStakingTime + 3

testStakingData1 := tm.getTestStakingData(t, tm.WalletPubKey, stakingTime1, 10000, 1)
testStakingData1 := tm.getTestStakingData(t, tm.WalletPubKey, stakingTime1, 100000, 1)
testStakingData2 := testStakingData1.withStakingTime(stakingTime2)
testStakingData3 := testStakingData1.withStakingTime(stakingTime3)
testStakingData4 := testStakingData1.withStakingTime(stakingTime4)
Expand Down
2 changes: 1 addition & 1 deletion stakercfg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
// for different transaction types are not very accurate and if we would use 1 sat/vbyte (minimum accepted by bitcoin network)
// we risk into having transactions rejected by the network due to low fee.
DefaultMinFeeRate = 2
DefaultMaxFeeRate = 25
DefaultMaxFeeRate = 200
)

var (
Expand Down
Loading