-
Notifications
You must be signed in to change notification settings - Fork 4.6k
RPC: getSignatureStatuses is not callable with a commitment config #10108
Comments
@jstarry , you requested that parameter be removed here: #9314 (comment) Line 586 in 5e43304
It is the number of confirmed blocks since signature confirmation; null if rooted on this node + rooted by a supermajority of the cluster In fact, the only commitment case we can't really check for right now is 'root'. I am not necessarily opposed to re-adding the commitment param, but want to make sure we're on the same page about how this endpoint functions to determine if it is needed. @mvines also had concerns about that syntax here: #9314 (comment) Both v1.0 and v1.1 actually retain this parameter: |
😅 yes, I remember!
Ah! I guess I need to read the code better, I missed that change
What about
I think I misstepped by proposing "Add a commitment config param to |
Ah, okay, interesting. Confirmation means "cluster confirmations" (blocks voted on by 2/3+ of the cluster) by definition, but we could add a toggle between confirmations and node votes/lockout. Maybe it would be better to add an additional |
Ah, I missed that |
Could we use better docs to avoid this kind of confusion again @jstarry? |
The docs look fine, I just didn't know they changed |
And for context, this only came up because I wanted to add support for |
Problem
getSignatureStatuses always returns signature status and confirmation counts for the "recent" commitment level. This makes it impossible to check for 'max' and 'single' commitment levels
Proposed Solution
Add a commitment config param
RpcSignatureStatusConfig
The text was updated successfully, but these errors were encountered: