Skip to content

Commit

Permalink
Staterecovery - udpate besu package (#586)
Browse files Browse the repository at this point in the history
* staterecovery: udpate to Besu 25.1-delivery43

* staterecovery: udpate besu package

* staterecovery: remove vertx from Uberjar (not necessary anymore)

* staterecovery: reuse release plugin

* staterecovery: rename
  • Loading branch information
jpnovais authored Jan 21, 2025
1 parent 543aedd commit e1ac681
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 76 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/finalized-tag-updater-github-release.yml

This file was deleted.

2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ clean-environment:
make clean-local-folders
docker network prune -f
docker volume rm linea-local-dev linea-logs || true # ignore failure if volumes do not exist already
# Commented out because it's quite time consuming to download the plugin, but it's useful to remember about it
#rm -rf tmp/linea-besu-sequencer/plugins/

start-l1:
L1_GENESIS_TIME=$(get_future_time) docker compose -f docker/compose.yml -f docker/compose-local-dev.overrides.yml --profile l1 up -d
Expand Down
8 changes: 4 additions & 4 deletions docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ services:
- l1network

zkbesu-shomei:
image: consensys/linea-besu-package:${SEQUENCER_TAG:-devnet-811f30b}
image: consensys/linea-besu-package:${SEQUENCER_TAG:-devnet-87bbd7c}
hostname: zkbesu-shomei
container_name: zkbesu-shomei
profiles: [ "l2", "l2-bc", "external-to-monorepo" ]
Expand Down Expand Up @@ -697,7 +697,7 @@ services:
ipv4_address: 10.10.10.205

zkbesu-shomei-sr:
image: consensys/linea-besu-package:${SEQUENCER_TAG:-devnet-811f30b}
image: consensys/linea-besu-package:${SEQUENCER_TAG:-devnet-87bbd7c}
hostname: zkbesu-shomei-sr
container_name: zkbesu-shomei-sr
profiles: [ "external-to-monorepo", "staterecovery" ]
Expand Down Expand Up @@ -728,8 +728,9 @@ services:
- -c
- |
chown -R besu:besu /opt/besu/plugins && \
rm /opt/besu/plugins/linea-staterecovery-besu-plugin-v* && \
ls -lh /opt/besu/plugins && \
sed -i '/^CLASSPATH/c\CLASSPATH=/opt/besu/lib/\*' /opt/besu/bin/besu && \
sed -i '/^CLASSPATH/c\CLASSPATH=/opt/besu/lib/\*\:/opt/besu/plugins/\*' /opt/besu/bin/besu && \
/opt/besu/bin/besu \
--config-file=/var/lib/besu/zkbesu-config.toml \
--genesis-file=/var/lib/besu/genesis.json \
Expand All @@ -748,7 +749,6 @@ services:
- ./config/zkbesu-shomei/zkbesu-config.toml:/var/lib/besu/zkbesu-config.toml:ro
- ./config/zkbesu-shomei/log4j-staterecovery.xml:/var/lib/besu/log4j.xml:ro
- ./config/linea-local-dev-genesis-PoA-besu.json/:/var/lib/besu/genesis.json:ro
- ../state-recovery/besu-plugin/build/libs/linea-staterecovery-besu-plugin-SNAPSHOT.jar:/opt/besu/lib/linea-staterecovery-besu-plugin-SNAPSHOT.jar
- ../state-recovery/besu-plugin/build/libs/linea-staterecovery-besu-plugin-SNAPSHOT.jar:/opt/besu/plugins/linea-staterecovery-besu-plugin-SNAPSHOT.jar

shomei-sr:
Expand Down
2 changes: 0 additions & 2 deletions finalized-tag-updater/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ ext.groupsToIncludeInShadow = [
"org.jetbrains.kotlin:kotlin-reflect.*",
"org.jetbrains.kotlinx:kotlinx-datetime.*",
"tech.pegasys.teku.internal:async",
"io.vertx.*",
// this can be removed once Besu updates to Vertx 4.12+
"com.michael-bull.kotlin-result:kotlin-result.*",
"com.fasterxml.jackson.module:jackson-module-kotlin",
]
Expand Down
4 changes: 2 additions & 2 deletions finalized-tag-updater/jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ project:
release:
github:
overwrite: true
releaseName: 'Finalized Tag Updater'
releaseName: 'Finalized Tag Updater {{version}}'
changelog:
enabled: false
commitAuthor:
Expand All @@ -28,4 +28,4 @@ distributions:
finalized-tag-updater:
type: SINGLE_JAR
artifacts:
- path: 'build/libs/{{tagName}}.jar'
- path: 'build/libs/finalized-tag-updater-{{version}}.jar'
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ restassured = "5.3.0"
teku = "23.1.1"
tuweni = "2.4.2"
kotlinResult = "1.1.16"
vertx = "4.5.0"
vertx = "4.5.11"
web3j = "4.12.2"
wiremock = "3.0.1"
jsonUnit = "3.4.1"
Expand Down
2 changes: 1 addition & 1 deletion jvm-libs/linea/besu-libs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
//def besuArtifactGroup="org.hyperledger.besu"
//def besuVersion=libs.versions.besu.get()
def besuArtifactGroup="io.consensys.linea-besu"
def besuVersion="24.12-develop-2098dd2"
def besuVersion="25.1-delivery43"

dependencies {
api("${besuArtifactGroup}:besu-datatypes:${besuVersion}") {
Expand Down
2 changes: 0 additions & 2 deletions state-recovery/besu-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ ext.groupsToIncludeInShadow = [
"org.jetbrains.kotlin:kotlin-reflect.*",
"org.jetbrains.kotlinx:kotlinx-datetime.*",
"tech.pegasys.teku.internal:async",
"io.vertx.*",
// this can be removed once Besu updates to Vertx 4.12+
"com.michael-bull.kotlin-result:kotlin-result.*",
"com.fasterxml.jackson.module:jackson-module-kotlin",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import net.consensys.toBigInteger
import net.consensys.toULong
import org.apache.logging.log4j.LogManager
import org.apache.tuweni.bytes.Bytes32
import org.hyperledger.besu.datatypes.AccountOverrideMap
import org.hyperledger.besu.datatypes.Address
import org.hyperledger.besu.datatypes.Hash
import org.hyperledger.besu.datatypes.StateOverrideMap
import org.hyperledger.besu.plugin.data.BlockContext
import org.hyperledger.besu.plugin.data.BlockHeader
import org.hyperledger.besu.plugin.data.BlockOverrides
Expand Down Expand Up @@ -49,7 +49,7 @@ class BlockImporter(
parentBlockNumber,
transactions,
createOverrides(block),
AccountOverrideMap()
StateOverrideMap()
)

log.debug(
Expand Down Expand Up @@ -84,7 +84,7 @@ class BlockImporter(
parentBlockNumber,
context.blockBody.transactions,
createOverrides(context.blockHeader),
AccountOverrideMap()
StateOverrideMap()
)
log.debug(
"simulateAndPersistWorldState result: block={} blockHeader={}",
Expand Down

0 comments on commit e1ac681

Please sign in to comment.