Skip to content

fix: event handling of txs with custom scripts#1140

Merged
glevco merged 1 commit intomasterfrom
fix/events/custom-script
Oct 3, 2024
Merged

fix: event handling of txs with custom scripts#1140
glevco merged 1 commit intomasterfrom
fix/events/custom-script

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Oct 1, 2024

Motivation

There's a bug in event handling when a tx spends another tx with a custom (or empty) script. This PR fixes this.

Acceptance Criteria

  • Add two new event simulation scenarios, EMPTY_SCRIPT and CUSTOM_SCRIPT, with their respective tests.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco added the bug Something isn't working label Oct 1, 2024
@glevco glevco self-assigned this Oct 1, 2024
@github-actions
Copy link

github-actions bot commented Oct 1, 2024

🐰 Bencher Report

Branchfix/events/custom-script
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Lower Boundary
nanoseconds (ns)
(Limit %)
Upper Boundary
nanoseconds (ns)
(Limit %)
sync-v2 (up to 20000 blocks)📈 view plot
🚷 view threshold
101,388,384,397.32
(-0.65%)
91,848,600,426.43
(90.59%)
112,259,400,521.19
(90.32%)
🐰 View full continuous benchmarking report in Bencher

@codecov
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.34%. Comparing base (9fddd7a) to head (1cc12ef).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1140      +/-   ##
==========================================
- Coverage   84.42%   84.34%   -0.08%     
==========================================
  Files         317      317              
  Lines       24291    24297       +6     
  Branches     3696     3697       +1     
==========================================
- Hits        20507    20494      -13     
- Misses       3068     3081      +13     
- Partials      716      722       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glevco glevco marked this pull request as ready for review October 1, 2024 20:01
@glevco glevco merged commit 7f53032 into master Oct 3, 2024
@glevco glevco deleted the fix/events/custom-script branch October 3, 2024 20:48
@jansegre jansegre mentioned this pull request Oct 4, 2024
2 tasks
@jansegre jansegre mentioned this pull request Dec 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants