Skip to content

Commit

Permalink
just starting
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Dec 4, 2023
1 parent 2f3ceed commit d3f9c3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,13 @@ func NewDefaultConfigNNodes(binaryPath string, numNodes uint32) (network.Config,
}
nodeConfig.StakingKey = string(stakingKey)
nodeConfig.StakingCert = string(stakingCert)
key, err := bls.NewSecretKey()
if err != nil {
return netConfig, fmt.Errorf("couldn't generate new signing key: %w", err)
}
keyBytes := bls.SecretKeyToBytes(key)
encodedKey := base64.StdEncoding.EncodeToString(keyBytes)
nodeConfig.StakingSigningKey = encodedKey
// replace ports
nodeConfig.Flags = map[string]interface{}{
config.HTTPPortKey: int(refAPIPort) + (i+1)*2,
Expand Down
1 change: 1 addition & 0 deletions server/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func (lc *localNetwork) createConfig() error {
if err != nil {
return err
}
return fmt.Errorf("PEPE")

var globalConfig map[string]interface{}

Expand Down

0 comments on commit d3f9c3b

Please sign in to comment.