Skip to content

Commit

Permalink
use subnet-evm@tmpnet-disjoint-validator-sets
Browse files Browse the repository at this point in the history
  • Loading branch information
feuGeneA committed Jun 20, 2024
1 parent f9d6f6b commit 60f7777
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/ava-labs/teleporter
go 1.21.11

require (
github.com/ava-labs/avalanchego v1.11.7
github.com/ava-labs/avalanchego v1.11.9-0.20240620174401-4a90260862f2
github.com/supranational/blst v0.3.11 // indirect
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8=
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/ava-labs/avalanchego v1.11.7 h1:BemCJEa6+f79fzRLdR0+iJAA3v9shOyhVniAKuibFyk=
github.com/ava-labs/avalanchego v1.11.7/go.mod h1:aPYTETkM0KjtC7vFwPO6S8z2L0QTKaXjVUi98pTdNO4=
github.com/ava-labs/avalanchego v1.11.9-0.20240620174401-4a90260862f2 h1://JvQLQ+wlev9LrViEop4LS9bbvq0mJhIukQHvdZpfY=
github.com/ava-labs/avalanchego v1.11.9-0.20240620174401-4a90260862f2/go.mod h1:iCCpG2UMMfsqNvyISGw6eXkLZSmHizbQ9TtguVZyOQo=
github.com/ava-labs/coreth v0.13.5-rc.0 h1:PJQbR9o2RrW3j9ba4r1glXnmM2PNAP3xR569+gMcBd0=
github.com/ava-labs/coreth v0.13.5-rc.0/go.mod h1:cm5c12xo5NiTgtbmeduv8i2nYdzgkczz9Wm3yiwwTRU=
github.com/ava-labs/subnet-evm v0.6.6 h1:F2s40f2SE2Yt/e97ZA6jMVaqDW+/1PLewcqOiUWDFd0=
Expand Down
10 changes: 9 additions & 1 deletion tests/local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/hex"
"math/big"
"os"
"slices"
"time"

"github.com/ava-labs/avalanchego/api/info"
Expand Down Expand Up @@ -468,7 +469,14 @@ func (n *LocalNetwork) AddSubnetValidators(ctx context.Context, subnetID ids.ID,
}

newNodes := subnetEvmTestUtils.NewTmpnetNodes(int(count))
Expect(subnet.AddValidators(ctx, os.Stdout, newNodes...)).Should(BeNil())
subnetsInfo := n.GetSubnetsInfo()
apiURI := subnetsInfo[slices.IndexFunc(
subnetsInfo,
func(si interfaces.SubnetTestInfo) bool {
return si.SubnetID == subnetID
},
)].NodeURIs[0]
Expect(subnet.AddValidators(ctx, os.Stdout, apiURI, newNodes...)).Should(BeNil())

n.setAllSubnetValues()
}
Expand Down

0 comments on commit 60f7777

Please sign in to comment.