Skip to content

Commit

Permalink
renamed trackedL1s to trackedSubnets
Browse files Browse the repository at this point in the history
  • Loading branch information
iansuvak committed Jan 9, 2025
1 parent af78d64 commit d60e961
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function extract_commit() {

# ICM_SERVICES_VERSION is needed for the E2E tests but is not a direct dependency since that would create a circular dependency.
# ICM_SERVICES_VERSION=${ICM_SERVICES_VERSION:-'signature-aggregator-v1.0.0-rc.0'}
ICM_SERVICES_VERSION=${ICM_SERVICES_VERSION:-'7d1e095dc84913d28c9c82806f240595e8cd4c8b'}
ICM_SERVICES_VERSION=${ICM_SERVICES_VERSION:-'303b307e816364f62ef2905694ac6d0652323248'}

# Don't export them as they're used in the context of other calls
AVALANCHEGO_VERSION=${AVALANCHEGO_VERSION:-$(extract_commit "$(getDepVersion github.com/ava-labs/avalanchego)")}
Expand Down
12 changes: 6 additions & 6 deletions tests/utils/signature_aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type SignatureAggregator struct {
type SignatureAggregatorConfig struct {
PChainAPI ApiConfig `json:"p-chain-api"`
InfoAPI ApiConfig `json:"info-api"`
L1IDs []string `json:"tracked-l1s"`
SubnetIDs []string `json:"tracked-subnet-ids"`
ApiPort int `json:"api-port"`
AllowPrivateIPs bool `json:"allow-private-ips"`
}
Expand All @@ -62,12 +62,12 @@ func (s *SignatureAggregator) Shutdown() {
}

// Aggregator utils
func NewSignatureAggregator(apiUri string, l1IDs []ids.ID) *SignatureAggregator {
func NewSignatureAggregator(apiUri string, subnetIDs []ids.ID) *SignatureAggregator {
sigAggPath := os.Getenv("SIG_AGG_PATH")
Expect(sigAggPath).ShouldNot(BeEmpty())
l1IdStrings := make([]string, 0, len(l1IDs))
for _, l1Id := range l1IDs {
l1IdStrings = append(l1IdStrings, l1Id.String())
subnetIDStrings := make([]string, 0, len(subnetIDs))
for _, subnetID := range subnetIDs {
subnetIDStrings = append(subnetIDStrings, subnetID.String())
}
cfg := SignatureAggregatorConfig{
PChainAPI: ApiConfig{
Expand All @@ -76,7 +76,7 @@ func NewSignatureAggregator(apiUri string, l1IDs []ids.ID) *SignatureAggregator
InfoAPI: ApiConfig{
BaseURL: apiUri,
},
L1IDs: l1IdStrings,
SubnetIDs: subnetIDStrings,
ApiPort: DEFAULT_API_PORT,
AllowPrivateIPs: true,
}
Expand Down

0 comments on commit d60e961

Please sign in to comment.