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

Fix authority keys, NAT network, sync & produce blocks integration works #653

Merged
merged 25 commits into from Mar 2, 2019

Conversation

ilblackdragon
Copy link
Member

Start by launching consensus from the last block.

@MaksymZavershynskyi
Copy link
Contributor

So this code seems to be mostly #651. LGTM for that part.
I think this PR needs to have a more specific name, by I cannot come up with anything good.

@ilblackdragon ilblackdragon changed the title [WIP] Make alphanet work Fix authority keys, NAT network, sync & produce blocks integration works Mar 2, 2019
@MaksymZavershynskyi
Copy link
Contributor

So the way it solved the problem with NAT is by allowing nodes to specify their PeerInfo::addr as None. Correct?

@MaksymZavershynskyi
Copy link
Contributor

Also, if I understood correctly you are saying this fixes this issue?

thread 'tokio-runtime-worker-4' panicked at 'Threshold is not found for given proposals: "Total stake 0 must be higher than the number of seats 2"', src/libcore/result.rs:1009:5

What is the fix, and why was it failing?

@ilblackdragon
Copy link
Member Author

@nearmax

For network stuff: yeah, it's not really solving NAT, just allows nodes without public addresses to connect to the network. addr is option and if it's not present, peer.rs doesn't try to connect to it.

For authorities, the problem was that we didn't have authority_mask populated at all (so everybody got kicked out). The real fix will be in #645 but I just filled in with true for now for all authorities.

@ilblackdragon ilblackdragon merged commit 2f5a038 into master Mar 2, 2019
@bowenwang1996 bowenwang1996 deleted the make-alphanet-work branch March 14, 2019 17:19
@ilblackdragon ilblackdragon added this to the AlphaNet milestone Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants