A Besu plugin that provides an RPC method to record and update the finalized block that can be utilized by L2.
You can either use pre-built jar from Assets section in releases or build it yourself.
Note
This project requires Java 21 or later. If it is not available, the gradle build will attempt to download one and use it.
- Checkout the project:
git clone https://github.com/Consensys/finalization-updater-besu-plugin.git
- Check Besu releases for latest stable version and update it in
gradle/libs.versions.toml
. For example:
[versions]
besu = "24.6.0"
- Build the plugin:
./gradlew clean build
The plugin jar will be available at build/libs/finalization-updater-besu-plugin-<version>.jar
.
Drop the finalization-updater-besu-plugin-<version>.jar
in the /plugins
folder under Besu installation. This plugin
will expose following RPC methods:
linea_updateFinalizedBlockV1(finalizedBlockNumber: Long): Boolean
SPDX-License-Identifier: Apache-2.0
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
See CONTRIBUTING.md for more details.