-
Notifications
You must be signed in to change notification settings - Fork 209
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
Need to document the FF1.3 revert error handling, and make the default safer #1492
Comments
Thanks @matthew1001 for raising this. Trying to understand what is needed for this one. It looks like hyperledger/firefly-evmconnect#130 only includes new unit tests. Are there additional code changes in EVMConnect require for this? |
Yeah I started by checking the current behaviour and adding a test to cover a custom-error case. I'm going to look at a config setting tomorrow to make |
@nguyer @peterbroadhurst following the discussion on custom errors I've double checked the current behaviour and since Peter's PR hyperledger/firefly-evmconnect#112 the extra info looks like:
Since FFTM doesn't have access to the error signature/ABI I think the consensus from other discussions I've seen is to look at updates to FF core to decode the So for FF 1.3 my intention is to:
Let me know if there's anything else you think I've missed for the FF 1.3 must-do work. |
@peterbroadhurst I've raised PR hyperledger/firefly-evmconnect#131 for making |
@peterbroadhurst @nguyer I've raised #1493 to cover the documentation task |
All of the PRs related to this have been merged so closing as complete |
@matthew1001 - seems I missed the chance to review. Location of the docsI see they got tucked all the way down in the depths of the architecture section, as a "how it works" section in the connector framework, whereas this is all EVM specific information about how one particular implementation of that works: So I think the placement is wrong on a few levels. Wonder if you'd mind moving it to a suitable section. Could be:
Missing TL/DRI actually don't even know the answer reading through the information... If I configure Hyperledger FireFly with Hyperledger Besu, using the default configuration (which I assert in FF 1.3 must include setting Missing description of the gap we know we're shipping v1.3 without closingI also couldn't see the gap we I know to be true related to e.g. if you're not using Should we link to #1466 from the docs for this? |
Sorry I should have pinged you for a review separate to Nicko's before merging @peterbroadhurst I'll have a look at refactoring into a different structure along the lines you've suggested and try to clarify what behaviour you do and don't get with 1.3. |
I've updated the docs as follows:
@peterbroadhurst let me know what you think of the latest shape of the docs |
@matthew1001 @peterbroadhurst PR has been merged, I think we can close this one? |
I think so @EnriqueL8 Everything we intended to complete for 1.3 has been done I believe. We can discuss the follow on work to expand custom errors in FF core as a possible 1.3.1 item? |
Awesome, closing |
Firefly evmconnect automatically attempts to retrieve and decode revert error reasons for failed transactions.
This happens in the following cases:
eth_estimateGas
returns a failed transaction resultWe don't currently document the different mechanisms we use to retrieve error information, which are:
debug_traceTranasction
to the node if the receipt doesn't contain itThe latter is a costly operation that could have a very negative impact on the stability and performance of an EVM chain under medium-heavy transaction workload. It would be safe to default to not issuing
debug_traceTransaction
, and allow the user to enable it manually.The text was updated successfully, but these errors were encountered: