-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 finality-related params for eth_getBlockByNumber
#12083
Comments
I see that the for api eth_getBlockByNumber has a param "finalized" - https://docs.alchemy.com/reference/eth-getblockbynumber String - Either the hex value of a block number OR One of the following block tags:
It looks like lotus currently supports For safe and finalized what values should we use? I woud want to defer to someone more familiar with the protocol for explaining what algorithm to use to find the appropriate "safe" and "finalized" block, then it should be a straightforward ticket to complete |
@aarshkshah1992 @rvagg would either of you know? TIA |
https://github.com/filecoin-project/FIPs/blob/master/FRCs/frc-0089.md might be of some help, at least in the information it presents. From what I understand, there wasn't going to be an FRC-0089 implementation done for Lotus because we have F3 around the corner that would make it (mostly) irrelevant. But it would be really helpful to have an implementation of it and then dynamically adjust When F3 lands, this all changes, and we need to figure that out. |
Other way around. Eth now has a concept of true finality, we only have probabilistic (until we get F3). Although, at 900 epochs, the probability of a reorg is basically zero. |
Checklist
Ideas
.Lotus component
What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.
Currently
eth_getBlockByNumber
params related to the finality of a block are not completely implemented in the Lotus Eth RPC API.Here is a more detailed description of the params.
It might be helpful for RPC API users to understand the finality of a block in a way similar to Ethereum semantics so that they can better prepare themselves in the event of a reorg.
Describe the solution you'd like
safe
could be used for blocks after a 30 epoch delay (as explained here)Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: