Skip to content

Commit

Permalink
Update Linea Besu to 25.1-develop-448d1a9 (#1722)
Browse files Browse the repository at this point in the history
* Update Linea Besu to 25.1-develop-448d1a9

Signed-off-by: Fabio Di Fabio <[email protected]>

* Use new version of `traceStartBlock`

Signed-off-by: Fabio Di Fabio <[email protected]>

* update to reflect new interface of GasCalculator.transactionIntrinsicGasCost method

* spotless fixes

* Update Reaper.java

* Update arithmetization/src/main/java/net/consensys/linea/blockcapture/reapers/Reaper.java

Removing resolved comment

---------

Signed-off-by: Fabio Di Fabio <[email protected]>
Co-authored-by: Daniel Lehrner <[email protected]>
Co-authored-by: Olivier Bégassat <[email protected]>
  • Loading branch information
3 people authored Jan 22, 2025
1 parent 18aa409 commit 18eaeb4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ public void traceStartConflation(long numBlocksInConflation) {}
public void traceEndConflation(WorldView state) {}

@Override
public void traceStartBlock(BlockHeader blockHeader, BlockBody blockBody) {
this.reaper.enterBlock(blockHeader, blockBody);
public void traceStartBlock(
BlockHeader blockHeader, BlockBody blockBody, Address miningBeneficiary) {
this.reaper.enterBlock(blockHeader, blockBody, miningBeneficiary);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ public class Reaper {
/** Collect the account address read / written by the current transaction */
private AddressReaper txAddresses = null;

public void enterBlock(final BlockHeader header, final BlockBody body) {
public void enterBlock(
final BlockHeader header, final BlockBody body, final Address miningBeneficiary) {
this.blocks.add(
BlockSnapshot.of((org.hyperledger.besu.ethereum.core.BlockHeader) header, body));
this.conflationAddresses.touch(header.getCoinbase());
this.conflationAddresses.touch(miningBeneficiary);
txIndex = 0; // reset
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ public TransactionProcessingMetadata(
// Note: Besu's dataCost computation contains
// - the 21_000 transaction cost (we deduce it)
// - the contract creation cost in case of deployment (we set deployment to false to not add it)
// - the baseline gas (gas for access lists and 7702 authorizations) is set to zero, because we
// only consider the cost of the transaction payload
dataCost =
ZkTracer.gasCalculator.transactionIntrinsicGasCost(besuTransaction.getPayload(), false)
ZkTracer.gasCalculator.transactionIntrinsicGasCost(besuTransaction.getPayload(), false, 0)
- GAS_CONST_G_TRANSACTION;
accessListCost =
besuTransaction.getAccessList().map(ZkTracer.gasCalculator::accessListGasCost).orElse(0L);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
releaseVersion=beta-v1.2.0-rc0
besuVersion=25.1-delivery42
besuVersion=25.1-develop-448d1a9
besuArtifactGroup=io.consensys.linea-besu
distributionIdentifier=linea-tracer
distributionBaseUrl=https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/
Expand Down

0 comments on commit 18eaeb4

Please sign in to comment.