Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p: replace network id with genesis id #3506

Closed
dshulyak opened this issue Aug 27, 2022 · 5 comments
Closed

p2p: replace network id with genesis id #3506

dshulyak opened this issue Aug 27, 2022 · 5 comments
Assignees

Comments

@dshulyak
Copy link
Contributor

dshulyak commented Aug 27, 2022

part of: spacemeshos/pm#135
depends on: #3505

@WilfredTA
Copy link

Not sure if handshake field needs to be replaced here? Currently, just setting p2p NetworkId with a uint32(GenesisId)

func (cfg *Config) NetworkIdFromGenesis(genCfg *GenesisConfig) {

@dshulyak
Copy link
Contributor Author

Why not to use genesis id in the handshake and remove network id as was discussed in the Lane's spec?

@WilfredTA
Copy link

Its just naming difference at this point - genesis ID is used as the network id. I think this is compliant with Lane's spec

@dshulyak
Copy link
Contributor Author

dshulyak commented Sep 14, 2022

It reduces genesis id to 4 bytes and calls it network id. This is just some strangeness honestly, can we do a straightforward thing

@WilfredTA
Copy link

Yeah, we can do that. Thanks for the input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants