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

Fix for receipt format from GetTxnBodiesForTxBlock(Ex) #1896

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

maxconway
Copy link
Contributor

@maxconway maxconway added the area:apis Related to externally-facing APIs label Nov 25, 2024
@maxconway maxconway force-pushed the max/bugfix/transaction_body_receipts_format_correction branch from 9f73fe0 to 8fcc925 Compare November 25, 2024 12:57
@maxconway maxconway marked this pull request as ready for review November 25, 2024 12:58
@@ -1036,6 +1037,11 @@ fn extract_transaction_bodies(block: &Block, node: &Node) -> Result<Vec<Transact
let receipt = node
.get_transaction_receipt(*hash)?
.ok_or(anyhow!("Transaction receipt missing"))?;
let receipt_response = TransactionReceiptResponse {
cumulative_gas: ScillaGas(receipt.cumulative_gas_used.0).to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be receipt.cumulative_gas_used.into(), so the amount gets converted from EvmGas to ScillaGas?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied this from the code for GetTxResponse, so I'm guessing it's wrong there too, I'll fix that at the same time

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed

Copy link
Contributor

🐰 Bencher Report

Branchmax/bugfix/transaction_body_receipts_format_correction
Testbedself-hosted
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
process-empty/process-empty📈 view plot
🚷 view threshold
8,394,000.00
(-7.39%)
10,680,091.61
(78.59%)
produce-full/produce-full📈 view plot
🚷 view threshold
2,256,000,000.00
(+15.36%)
2,413,138,377.17
(93.49%)
🐰 View full continuous benchmarking report in Bencher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:apis Related to externally-facing APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Z2-Converter : GetTxnBodiesForTxBlock shows incorrect data
2 participants