-
Notifications
You must be signed in to change notification settings - Fork 113
core: implement network ID detection check on startup #301
Conversation
update with latest changes from development
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.
@hrharder it looks like we're making the problem harder than it needs to be. I made some suggestions to help simplify the approach.
For testing, we can just call |
@albrow I believe I addressed all your comments, please advise if I missed something. Will plan on pushing a test soon. |
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.
Just requested a few more changes. Looks pretty good!
The commit I just pushed should address all the comments. My only remaining questions are:
|
@fabioberger do you have any preference on the signature of the |
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.
Looks great. Thanks @hrharder!
Functional but a work in progress, a few outstanding points (see notes section).
Overview
Closes #237
Metadata
collection to MeshDB to store the networkID we are starting up withinitNetworkId
) also stores the network ID during the initial startup (no previous DB)Steps for testing:
You should see:
Notes
Still a WIP due to me having questions about the following:
[]byte("metadata")
? (see here)