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(*): upgrade babylon to v0.10.0 #62

Merged
merged 7 commits into from
Sep 23, 2024
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
2 changes: 1 addition & 1 deletion e2etest/container/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
dockerBitcoindRepository = "lncm/bitcoind"
dockerBitcoindVersionTag = "v27.0"
dockerBabylondRepository = "babylonlabs/babylond"
dockerBabylondVersionTag = "8e0222804ed19b18d74d599b80baa18f05e87d8a" // this is built from commit b1e255a
dockerBabylondVersionTag = "v0.10.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

)

// NewImageConfig returns ImageConfig needed for running e2e test.
Expand Down
2 changes: 1 addition & 1 deletion e2etest/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (m *Manager) RunBabylondResource(
"--btc-confirmation-depth=2 --additional-sender-account --btc-network=regtest "+
"--min-staking-time-blocks=200 --min-staking-amount-sat=10000 "+
"--epoch-interval=%d --slashing-pk-script=%s --btc-base-header=%s "+
"--covenant-quorum=1 --covenant-pks=%s && chmod -R 777 /home && babylond start --home=/home/node0/babylond --log_level=debug",
"--covenant-quorum=1 --covenant-pks=%s && chmod -R 777 /home && babylond start --home=/home/node0/babylond",
epochInterval, slashingPkScript, baseHeaderHex, bbn.NewBIP340PubKeyFromBTCPK(covenantPK).MarshalHex()),
}

Expand Down
6 changes: 3 additions & 3 deletions e2etest/slasher_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestSlasher_Slasher(t *testing.T) {
// segwit is activated at height 300. It's needed by staking/slashing tx
numMatureOutputs := uint32(300)

tm := StartManager(t, numMatureOutputs, defaultEpochInterval)
tm := StartManager(t, numMatureOutputs, 5)
defer tm.Stop(t)
// start WebSocket connection with Babylon for subscriber services
err := tm.BabylonClient.Start()
Expand Down Expand Up @@ -139,7 +139,7 @@ func TestSlasher_SlashingUnbonding(t *testing.T) {
// segwit is activated at height 300. It's needed by staking/slashing tx
numMatureOutputs := uint32(300)

tm := StartManager(t, numMatureOutputs, defaultEpochInterval)
tm := StartManager(t, numMatureOutputs, 5)
defer tm.Stop(t)
// start WebSocket connection with Babylon for subscriber services
err := tm.BabylonClient.Start()
Expand Down Expand Up @@ -226,7 +226,7 @@ func TestSlasher_Bootstrapping(t *testing.T) {
// segwit is activated at height 300. It's needed by staking/slashing tx
numMatureOutputs := uint32(300)

tm := StartManager(t, numMatureOutputs, defaultEpochInterval)
tm := StartManager(t, numMatureOutputs, 5)
defer tm.Stop(t)
// start WebSocket connection with Babylon for subscriber services
err := tm.BabylonClient.Start()
Expand Down
3 changes: 1 addition & 2 deletions e2etest/test_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ import (
"fmt"
"github.com/babylonlabs-io/vigilante/e2etest/container"
"github.com/btcsuite/btcd/txscript"
pv "github.com/cosmos/relayer/v2/relayer/provider"
"go.uber.org/zap"
"os"
"path/filepath"
"testing"
"time"

pv "github.com/cosmos/relayer/v2/relayer/provider"

bbnclient "github.com/babylonlabs-io/babylon/client/client"
bbn "github.com/babylonlabs-io/babylon/types"
btclctypes "github.com/babylonlabs-io/babylon/x/btclightclient/types"
Expand Down
Loading
Loading