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 24, 2025
1 parent a0511c6 commit 1586bdb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deployment/ccip/changeset/cs_jobspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ func CCIPCapabilityJobspecChangeset(env deployment.Environment, _ any) (deployme
continue
}
_, 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 1586bdb

Please sign in to comment.