Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hyperledger/besu into 24-12-1-chang…
Browse files Browse the repository at this point in the history
…elog
  • Loading branch information
macfarla committed Dec 16, 2024
2 parents 2016179 + 566583c commit 848922a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
package org.hyperledger.besu.ethereum.transaction;

import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static org.hyperledger.besu.ethereum.mainnet.feemarket.ExcessBlobGasCalculator.calculateExcessBlobGasForParent;

import org.hyperledger.besu.crypto.SECPSignature;
Expand Down Expand Up @@ -176,7 +177,7 @@ public Optional<TransactionSimulatorResult> processOnPending(
}

public ProcessableBlockHeader simulatePendingBlockHeader() {
final long timestamp = System.currentTimeMillis();
final long timestamp = MILLISECONDS.toSeconds(System.currentTimeMillis());
final var chainHeadHeader = blockchain.getChainHeadHeader();
final ProtocolSpec protocolSpec =
protocolSchedule.getForNextBlockHeader(chainHeadHeader, timestamp);
Expand Down

0 comments on commit 848922a

Please sign in to comment.