-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add commitment Root variant, and add fleshed out --commitment arg to Cli #9806
Add commitment Root variant, and add fleshed out --commitment arg to Cli #9806
Conversation
@mvines , are any of the |
Nothing comes to mind, we'll find them once this lands though :) |
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.
sweet, I love the cli code deduping
Codecov Report
@@ Coverage Diff @@
## master #9806 +/- ##
======================================
Coverage 80.4% 80.4%
======================================
Files 281 282 +1
Lines 64644 64635 -9
======================================
+ Hits 51975 51984 +9
+ Misses 12669 12651 -18 |
Problem
We recently redefined max commitment to mean the most recent block that a supermajority of the cluster has rooted, which involved using this block in rpc by default. However, there are times when you want to get data from a node root and the cluster-confirmed root is problematic: for instance, if your node is many blocks behind the cluster.
Summary of Changes
BankForks::root()
Bank--confirmed
args with--commitment=default|max|recent|root
, retaining the default torecent
that was implemented for those subcommandsAs discussed: #9750 (comment)