Skip to content

Commit

Permalink
fix for bonsai state root mismatch (#4041)
Browse files Browse the repository at this point in the history
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
  • Loading branch information
matkt authored Jul 4, 2022
1 parent 8d372a0 commit 6aa8812
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
### Bug Fixes
- Fixed a snapsync issue that can sometimes block the healing step [#3920](https://github.com/hyperledger/besu/pull/3920)
- Support free gas networks in the London fee market [#4003](https://github.com/hyperledger/besu/pull/4003)
- Fixed a state root mismatch issue on bonsai that may appear occasionally [#4041](https://github.com/hyperledger/besu/pull/4041)

## 22.4.3

Expand Down
21 changes: 10 additions & 11 deletions evm/src/main/java/org/hyperledger/besu/evm/frame/MessageFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,16 @@ private MessageFrame(

// the warmed up addresses will always be a superset of the address keys in the warmed up
// storage, so we can do both warm-ups in one pass
accessListWarmAddresses.parallelStream()
.forEach(
address ->
Optional.ofNullable(worldUpdater.get(address))
.ifPresent(
account ->
warmedUpStorage.get(address).parallelStream()
.forEach(
storageKeyBytes ->
account.getStorageValue(
UInt256.fromBytes(storageKeyBytes)))));
accessListWarmAddresses.forEach(
address ->
Optional.ofNullable(worldUpdater.get(address))
.ifPresent(
account ->
warmedUpStorage
.get(address)
.forEach(
storageKeyBytes ->
account.getStorageValue(UInt256.fromBytes(storageKeyBytes)))));
}

/**
Expand Down

0 comments on commit 6aa8812

Please sign in to comment.