Skip to content

Commit

Permalink
Init KZG precompile contract before importing blocks (#8219)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lehrner <[email protected]>
  • Loading branch information
daniellehrner authored Feb 2, 2025
1 parent 81e1ab9 commit 56e5b3c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.hyperledger.besu.ethereum.core.ImmutableMiningConfiguration;
import org.hyperledger.besu.ethereum.core.ImmutableMiningConfiguration.MutableInitValues;
import org.hyperledger.besu.ethereum.core.MiningConfiguration;
import org.hyperledger.besu.evm.precompile.KZGPointEvalPrecompiledContract;
import org.hyperledger.besu.metrics.MetricsService;
import org.hyperledger.besu.metrics.prometheus.MetricsConfiguration;

Expand Down Expand Up @@ -206,6 +207,7 @@ public void run() {
}
LOG.info("Import {} block data from {} files", format, blockImportFiles.size());
final Optional<MetricsService> metricsService = initMetrics(parentCommand);
KZGPointEvalPrecompiledContract.init();

try (final BesuController controller = createController()) {
for (final Path path : blockImportFiles) {
Expand Down

0 comments on commit 56e5b3c

Please sign in to comment.