Skip to content

Commit

Permalink
Correct reference test blobgas calculation (#6107)
Browse files Browse the repository at this point in the history
* Correct reference test blobgas calculation

Fix tpyo that resulted in an NPE in t8n blob gas calculations.

Signed-off-by: Danno Ferrin <[email protected]>

* changelog

Signed-off-by: Danno Ferrin <[email protected]>

* spotless

Signed-off-by: Danno Ferrin <[email protected]>

---------

Signed-off-by: Danno Ferrin <[email protected]>
  • Loading branch information
shemnon authored Oct 31, 2023
1 parent e814886 commit d0a6a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

- Upgrade netty to address CVE-2023-44487, CVE-2023-34462 [#6100](https://github.com/hyperledger/besu/pull/6100)
- Upgrade grpc to address CVE-2023-32731, CVE-2023-33953, CVE-2023-44487, CVE-2023-4785 [#6100](https://github.com/hyperledger/besu/pull/6100)
- Fix blob gas calculation in reference tests [#6107](https://github.com/hyperledger/besu/pull/6107)

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public BlockHeader updateFromParentValues(final ProtocolSpec protocolSpec) {
protocolSpec
.getGasCalculator()
.computeExcessBlobGas(
Long.decode(parentExcessBlobGas), Long.decode(parentGasUsed))));
Long.decode(parentExcessBlobGas), Long.decode(parentBlobGasUsed))));
}

return builder.buildBlockHeader();
Expand Down

0 comments on commit d0a6a70

Please sign in to comment.