-
Notifications
You must be signed in to change notification settings - Fork 110
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
cmd, p2p, trie: load p2p data from genesis #369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to update the config in the config
package. You can just pass the genesis data into createP2PService
and use it to construct the config in p2p
. The configs in config
match one-to-one with the toml config which is broken by this PR
@ansermino I have returned the config package to its former state and updated |
* added ProtocolId to p2p config, set it in p2p.NewService * changed the previous global ProtocolPrefix to DefaultProtocolId which is used if the protocol ID in the config is empty * added updating of the p2p config in makeNode to use the p2p info that was loaded from genesis
Changes
ProtocolPrefix
toDefaultProtocolId
which is used if the protocol ID in the config is emptymakeNode
to use the p2p info that was loaded from genesis[][]byte
since[]string
wasn't working (will open an issue about this)Tests:
Issues:
closes #228