Skip to content
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

Altered behaviour of GetTransactionStatus #2170

Merged

Conversation

maxconway
Copy link
Contributor

I'm very open to different logic if anyone knows better exactly what the behaviour should be here.

Intended to fix #2167

@maxconway maxconway linked an issue Jan 17, 2025 that may be closed by this pull request
@maxconway maxconway self-assigned this Jan 17, 2025
@maxconway maxconway marked this pull request as ready for review January 17, 2025 16:06
@maxconway maxconway enabled auto-merge January 17, 2025 16:07
Copy link
Contributor

github-actions bot commented Jan 17, 2025

🐰 Bencher Report

Branchmax/fix/2167-incorrect-status-returned-by-gettransactionstatus
Testbedself-hosted
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
full-blocks-erc20-transfers/full-blocks-erc20-transfers📈 view plot
🚷 view threshold
1,082.20 ms
(-5.84%)Baseline: 1,149.32 ms
1,532.38 ms
(70.62%)
full-blocks-evm-transfers/full-blocks-evm-transfers📈 view plot
🚷 view threshold
449.45 ms
(+5.75%)Baseline: 425.02 ms
528.84 ms
(84.99%)
full-blocks-zil-transfers/full-blocks-zil-transfers📈 view plot
🚷 view threshold
3,379.50 ms
(-12.46%)Baseline: 3,860.67 ms
5,218.62 ms
(64.76%)
process-empty/process-empty📈 view plot
🚷 view threshold
10.32 ms
(+7.43%)Baseline: 9.60 ms
11.87 ms
(86.92%)
🐰 View full continuous benchmarking report in Bencher

@maxconway
Copy link
Contributor Author

See discussion in #2167

- rewrite of status code calculation
- docs updates
- now handles transactions that aren't in a block more correctly
@maxconway maxconway enabled auto-merge January 21, 2025 12:37
@maxconway maxconway disabled auto-merge January 21, 2025 12:47
@maxconway maxconway enabled auto-merge January 21, 2025 14:33
- Removed comments indicating deprecated options in status enum
- Refactored state decision code from api/types/zil.rs to api/zilliqa.rs
- Fixed finalization checking logic
Copy link
Contributor

@JamesHinshelwood JamesHinshelwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I am confused about the interaction between receipt and block. I might be misunderstanding, in which case feel free to ignore me and merge.

- refactored handling of missing receipts
- cut down on a vec iteration in looking up transaction pending/queued
@maxconway maxconway disabled auto-merge February 4, 2025 14:23
@maxconway maxconway enabled auto-merge February 4, 2025 14:29
@maxconway maxconway disabled auto-merge February 19, 2025 16:45
@maxconway maxconway added this pull request to the merge queue Feb 26, 2025
Merged via the queue into main with commit 49d616a Feb 26, 2025
6 checks passed
@maxconway maxconway deleted the max/fix/2167-incorrect-status-returned-by-gettransactionstatus branch February 26, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong transaction status from GetTransactionStatus Incorrect status returned by GetTransactionStatus
2 participants