-
Notifications
You must be signed in to change notification settings - Fork 279
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] #2133: Rewrite topology to be closer the whitepaper. #3250
[fix] #2133: Rewrite topology to be closer the whitepaper. #3250
Conversation
08f16b0
to
84ac5d8
Compare
Codecov Report
@@ Coverage Diff @@
## iroha2-dev #3250 +/- ##
==============================================
+ Coverage 62.33% 62.67% +0.34%
==============================================
Files 169 159 -10
Lines 31218 31826 +608
==============================================
+ Hits 19459 19948 +489
- Misses 11759 11878 +119
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
84ac5d8
to
60f2c78
Compare
60f2c78
to
320a2c9
Compare
@SamHSmith can you please explain why we need to carry topology in every block since every peer anyway uses it's own topology to verify that received topology is correct? |
The old topology was based on a block has and a view change index. This is bad for security since the leader can influence the block hash and therefore influence the future topology. Now that we have a constantly evolving topology whos operations are destructive, rolling back becomes harder. Instead of keeping old topologies around locally we store it in the block header. This way when there is a softfork or odd consensus a peer can see that enough peers signed this block and adopt the topology. Topology is checked while verifying but not when receiving block through syncing. |
a38a85d
to
8d91fd1
Compare
So now topology is kinda predetermined, right? |
Kinda is the right word to use. Because it's not exactly predetermined in the sense that you could predict it. But it is a result of what happens in a given round, block signing etc. So you cannot predict it but all peers will agree on the topology if they observe the same events taking place. |
075f418
to
9e60a12
Compare
0e3b14f
to
7f90b83
Compare
7b9d598
to
21244c4
Compare
…paper. Signed-off-by: Sam H. Smith <sam.henning.smith@protonmail.com>
21244c4
to
b563ae1
Compare
Description of the Change
Issue
Benefits
Possible Drawbacks
Usage Examples or Tests [optional]
Alternate Designs [optional]