-
Notifications
You must be signed in to change notification settings - Fork 4
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
*: support extra dBFT stage #118
Commits on Jul 17, 2024
-
internal: move tx64 to internal/consensus package
It will be reused by anti-MEV related dBFT interfaces implementations. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 377942e - Browse repository at this point
Copy the full SHA 377942eView commit details
Commits on Jul 30, 2024
-
Ref. #112. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eea3ee4 - Browse repository at this point
Copy the full SHA eea3ee4View commit details
Commits on Jul 31, 2024
-
*: add testing infrastructure for Anti-MEV dBFT extension
Add custom PreBlock and Block interfaces implementation, custom Commit and CommitAck, adjust testing logic. Signed-off-by: Anna Shaleva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6592d82 - Browse repository at this point
Copy the full SHA 6592d82View commit details -
dbft: don't react on transactions if PreCommit or Commit sent
Technically, this is implied by d.ResponseSent(), but we still have BlockSent() check as well, so these don't hurt. Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ea7cfc6 - Browse repository at this point
Copy the full SHA ea7cfc6View commit details -
dbft: remove redundant index check
It's done at the start of OnReceive() and it's even more strict there. Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 51cab0b - Browse repository at this point
Copy the full SHA 51cab0bView commit details -
dbft: raise PrepareRequest sender mismatch log to Info
It's a security event, this should never happen and we better know if it does. Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ff190eb - Browse repository at this point
Copy the full SHA ff190ebView commit details -
dbft: drop "empty PrepareRequest" log
It's useless, we log tx number down below anyway. Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5bef38 - Browse repository at this point
Copy the full SHA b5bef38View commit details -
dbft: fix commit checking with AMEV enabled
Commit payloads can't be checked with PrepareRequest data only in AMEV case, we don't yet have a complete header. So check them after we have enough PreCommit payloads. Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 752f616 - Browse repository at this point
Copy the full SHA 752f616View commit details -
dbft: reduce cyclomatic complexity of on[Pre]Commit()
Be a bit more optimistic about the message (similar to how onPrepareResponse() works). Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a9f202 - Browse repository at this point
Copy the full SHA 3a9f202View commit details -
context: reset preBlockProcessed properly
Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1bce289 - Browse repository at this point
Copy the full SHA 1bce289View commit details -
context: define preBlockProcessed, make it fire only once
Supposedly AMEV code will do its magic here and it doesn't need to do it twice. Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aa532ae - Browse repository at this point
Copy the full SHA aa532aeView commit details -
For a single height/view there is a single proper hash and it's not a final block hash, likely logging it won't help much. Can be done in future if needed, but let's have view number for now. Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53fb1ea - Browse repository at this point
Copy the full SHA 53fb1eaView commit details -
recovery: add PreCommit support
Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e2e3d08 - Browse repository at this point
Copy the full SHA e2e3d08View commit details -
dbft: extend single node test with AMEV
Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 799ce0e - Browse repository at this point
Copy the full SHA 799ce0eView commit details -
dbft: add caching support for precommits
Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f123518 - Browse repository at this point
Copy the full SHA f123518View commit details -
dbft: make future message cache work properly, add a test
start() was designed to be called at every view change, but looks like it _never_ worked this way. Which means two things: * on every view change Primary doesn't send PrepareRequest during initialization (which is mostly OK, OnTimeout() will be triggered immediately with 0 timeout) * our future message caching system has never really worked since start() is the only place where messages can be picked up from it Just drop start(), make caches work and add a test for them. Signed-off-by: Roman Khimov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2fca051 - Browse repository at this point
Copy the full SHA 2fca051View commit details