-
Notifications
You must be signed in to change notification settings - Fork 693
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
Feat/execution time expired #5926
Feat/execution time expired #5926
Conversation
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.
This looks good! Can you also add a multi-miner integration test where one miner has this new config parameter set to 0? The test should verify that this miner still accepts blocks from the other miner.
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.
This is looking great, just a few more comments.
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.
LGTM!
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.
👍
e432dfd
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5926 +/- ##
===========================================
+ Coverage 83.84% 84.10% +0.26%
===========================================
Files 522 522
Lines 380644 381318 +674
Branches 323 323
===========================================
+ Hits 319138 320709 +1571
+ Misses 61498 60601 -897
Partials 8 8
... and 43 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Description
This patch introduces time tracking for contract call.
Initially it is just applied for miners using the "max_execution_time" (seconds) option.
Time is checked at every eval calls and eventually triggers CostErrors::ExecutionTimeExpired
Applicable issues
Additional info (benefits, drawbacks, caveats)
Checklist
docs/rpc/openapi.yaml
andrpc-endpoints.md
for v2 endpoints,event-dispatcher.md
for new events)clarity-benchmarking
repobitcoin-tests.yml