Skip to content

Commit

Permalink
Add dummy encryption public key to nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryNguyen5 committed Oct 17, 2024
1 parent 5498dd8 commit e196f82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/scripts/keystone/src/88_capabilities_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (c *CapabilityRegistryProvisioner) AddNodeOperator(ctx context.Context, nop
// there is a DON servicing it. This is done via `AddDON`.
func (c *CapabilityRegistryProvisioner) AddNodes(ctx context.Context, nop *NodeOperator, capSet CapabilitySet) {
params := []kcr.CapabilitiesRegistryNodeParams{}
for _, peer := range nop.DON {
for i, peer := range nop.DON {
node, innerErr := peerToNode(nop.id, peer)
if innerErr != nil {
panic(innerErr)
Expand All @@ -178,7 +178,7 @@ func (c *CapabilityRegistryProvisioner) AddNodes(ctx context.Context, nop *NodeO
// Technically we could be more flexible here,
// where we can have different capset assignment for each node
node.HashedCapabilityIds = capSet.CapabilityIDs(c.reg)

node.EncryptionPublicKey = [32]byte{2: byte(i + 1)}
params = append(params, node)
}

Expand Down Expand Up @@ -539,7 +539,6 @@ func peerToNode(nopID uint32, p peer) (kcr.CapabilitiesRegistryNodeParams, error
}, nil
}


// newCapabilityConfig returns a new capability config with the default config set as empty.
// Override the empty default config with functional options.
func newCapabilityConfig(opts ...func(*values.Map)) *capabilitiespb.CapabilityConfig {
Expand Down

0 comments on commit e196f82

Please sign in to comment.