Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Sep 18, 2024
1 parent 1f87ba3 commit 3457e68
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2,022 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ MOCKGEN_REPO=github.com/golang/mock/mockgen
MOCKGEN_VERSION=v1.6.0
MOCKGEN_CMD=go run ${MOCKGEN_REPO}@${MOCKGEN_VERSION}
BUILDDIR ?= $(CURDIR)/build
TOOLS_DIR := tools

BABYLON_PKG := github.com/babylonlabs-io/babylon/cmd/babylond

Expand Down
9 changes: 4 additions & 5 deletions e2etest/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const (
)

var (
// jury
_, juryPK = btcec.PrivKeyFromBytes(
_, covenantPK = btcec.PrivKeyFromBytes(
[]byte{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
)
)
Expand Down Expand Up @@ -207,7 +206,7 @@ func (m *Manager) RunBabylondResource(
"--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",
epochInterval, slashingPkScript, baseHeaderHex, bbn.NewBIP340PubKeyFromBTCPK(juryPK).MarshalHex()),
epochInterval, slashingPkScript, baseHeaderHex, bbn.NewBIP340PubKeyFromBTCPK(covenantPK).MarshalHex()),
}

resource, err := m.pool.RunWithOptions(
Expand All @@ -218,7 +217,7 @@ func (m *Manager) RunBabylondResource(
Labels: map[string]string{
"e2e": "babylond",
},
//User: "root:root",
User: "root:root",
Mounts: []string{
fmt.Sprintf("%s/:/home/", mounthPath),
},
Expand Down Expand Up @@ -255,7 +254,7 @@ func (m *Manager) RunBabylondResource(
func (m *Manager) ClearResources() error {
for _, resource := range m.resources {
if err := m.pool.Purge(resource); err != nil {
continue
return err
}
}

Expand Down
223 changes: 0 additions & 223 deletions tools/go.mod

This file was deleted.

Loading

0 comments on commit 3457e68

Please sign in to comment.