Skip to content

Set initial peers and genesis code alongside network id #243

@steinerkelvin

Description

@steinerkelvin
  • Which peers you want to connect to depends on which network id / protocol version you are using
  • Also, the genesis code, which defines the hash of the genesis code, reverberate on the entire chain

It's interesting to be able to associate both with the network id in the node configuration.

[node.network]
network_id = "0xCAFE0004"

[node.networks.0xCAFE0004]
genesis_code = '~/.kindelia/genesis/cafe0004.kdl'
initial_peers = [
  "64.227.110.69",
  "188.166.3.140",
]

[node.networks.0xCAFE0005]
genesis_code = '~/.kindelia/genesis/cafe0005.kdl'
initial_peers = [
  ...
]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions