-
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
FilecoinAddressToEthAddress RPC API call does not support f1/f2/f3 #12308
Comments
note there will be a finality/deterministic concern (i.e: f1/2/3 -> f0 mapping is only stable post finality) with whats proposed. maybe should only take f0 from the user and user is responsible for giving the right & confirmed f0 |
@jennijuju - isn't Fast Finality coming soon? |
Yah then we should really consider add “safe, finalized, future” options and checks. |
@jennijuju already hit the nail on the head. The biggest concern here is finality. If the "f0" address assigned to the "f1/f2/f3" address gets re-orged and users end up sending funds to the "0xff..." ETH address which is derived from the "f0" address -> users can lose funds. The other implementation detail to keep in mind is that this API can only return an ETH address if the "f1/f2/f3" actor has already been created on chain(so that it has an "f0.." mapping) and the API should handle this case. Otherwise, fairly easy to implement. |
@eshon What would a good UX look like here to warn users about the finality implications ? Or should the API only return a result if the "f0..." address is already final ? I think @jennijuju 's suggestion of the API taking an additional "safe"/"finalised" etc parameter makes sense so client knows the re-org implications of their ask. |
The finality param suggestion might work (example from eth_getBlockByNumber) as long as it's well-documented, in the code as well. At least with this approach you're giving more contextual information to users than just rejecting the request and they can use at their own risk. Wonder how F3 will change the Finality Calculator. |
Note that this approach leaves the onus of worrying about finality/re-orgs on the client so they should know what they're doing. Does this suffice for the Drip use case ? Let me know if this dosen't work. We can add an equivalent of the |
Note that #12324 addresses this. The existing |
Checklist
Latest release
, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Repro Steps
...
Describe the Bug
Various EVM dapps like Drips are intergrating which might need to be able to translate f1/f2/f3 into 0xFF000... equivalents.
It would be good for the Lotus RPC API to support this and it seems like an efficient lookup. It does not have the same lookup costs as #12184.
Logging Information
The text was updated successfully, but these errors were encountered: