Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Field tx.gasUsed when there are multiple tx per bloc is the cumulative gas used and not the gasUsed of the transaction #530
When there are multiple transactions in a bloc, the field gasUsed returned to eth.getTransactionReceipt is the cumulative gas and not the gas used of that particular transaction
Ganache is in mining every 5 seconds, running on port 7545.
Proof and log
And from a "geth attach http://localhost:7545"
Probably a missing reset of the gas used when creating the block
Steps to Reproduce (for bugs)
From a "geth attach" console, send 3 payment transactions
Cannot really use my logical function that test if too much gas has been used