Skip to content

Commit

Permalink
Merge pull request #2667 from OffchainLabs/stylus_configs_update
Browse files Browse the repository at this point in the history
node config: always add targets in the same order
  • Loading branch information
PlasmaPower committed Sep 12, 2024
2 parents 4aa1d21 + a3a5bd5 commit a0b1adc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions execution/gethexec/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"reflect"
"sort"
"sync/atomic"
"testing"

Expand Down Expand Up @@ -59,6 +60,11 @@ func (c *StylusTargetConfig) Validate() error {
for target := range targetsSet {
targets = append(targets, target)
}
sort.Slice(
targets,
func(i, j int) bool {
return targets[i] < targets[j]
})
c.wasmTargets = targets
return nil
}
Expand Down

0 comments on commit a0b1adc

Please sign in to comment.