Skip to content

Commit

Permalink
Add in check for multiple keys
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jan 3, 2025
1 parent 66d8f22 commit bf15d0b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions deployment/ccip/changeset/cs_jobspec.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package changeset

import (
"fmt"

"github.com/smartcontractkit/ccip-owner-contracts/pkg/proposal/timelock"

chainsel "github.com/smartcontractkit/chain-selectors"
Expand Down Expand Up @@ -34,9 +36,13 @@ func CCIPCapabilityJobspec(env deployment.Environment, _ any) (deployment.Change
break
}
_, exists := keyBundles[family]
if !exists {
keyBundles[family] = config.KeyBundleID
if exists {
if keyBundles[family] != config.KeyBundleID {
return deployment.ChangesetOutput{}, fmt.Errorf("multiple different %v OCR keys found for node %v", family, node.PeerID)
}
continue
}
keyBundles[family] = config.KeyBundleID
}

var spec string
Expand Down

0 comments on commit bf15d0b

Please sign in to comment.