Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Hive state persistence#1171

Closed
nolash wants to merge 2 commits intomasterfrom
hive-state-persistence
Closed

Hive state persistence#1171
nolash wants to merge 2 commits intomasterfrom
hive-state-persistence

Conversation

@nolash
Copy link
Copy Markdown
Contributor

@nolash nolash commented Jan 29, 2019

Fixes #1161 ... The bug was that by passing n=1 to the second protocol tester, an additional node was created.


While adding comments to the tests in this file in an attempt to explain what they do, I also uncovered a synchonicity discrepancy in the TestRegisterAndConnect test. This theoretically makes it pass before connection has been made. I added the fix to this PR.

It would perhaps be more correct to add a TestConnected method to ProtocolSession (along the lines of TestDisconnected) instead of the connect test loop in TestRegisterAndConnect that I've added here. However, if this is the only place we care about whether connection is actually up maybe it could just stay like this for now.

@nolash
Copy link
Copy Markdown
Contributor Author

nolash commented Jan 29, 2019

submitted upstream ethereum/go-ethereum#18964

@nonsense nonsense closed this Jan 30, 2019
@frncmx frncmx deleted the hive-state-persistence branch February 5, 2019 13:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix TestHiveStatePersistance

3 participants