Skip to content

Commit

Permalink
Fix assigned boot nodes port number in genesis (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Nov 18, 2022
1 parent 8627f12 commit 4a3f562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/genesis/polybft_params.go
Expand Up @@ -39,7 +39,7 @@ const (
defaultPolyBftValidatorPrefixPath = "test-chain-"
defaultBridge = false

bootnodePortStart = 1
bootnodePortStart = 30301
defaultStakeBalance = 100
)

Expand Down Expand Up @@ -102,7 +102,7 @@ func (p *genesisParams) generatePolyBFTConfig() (*chain.Chain, error) {
// set generic validators as bootnodes if needed
if len(p.bootnodes) == 0 {
for i, validator := range validatorsInfo {
bnode := fmt.Sprintf("/ip4/%s/tcp/%d0001/p2p/%s", "127.0.0.1", bootnodePortStart+i, validator.NodeID)
bnode := fmt.Sprintf("/ip4/%s/tcp/%d/p2p/%s", "127.0.0.1", bootnodePortStart+i, validator.NodeID)
chainConfig.Bootnodes = append(chainConfig.Bootnodes, bnode)
}
}
Expand Down

0 comments on commit 4a3f562

Please sign in to comment.