From 17464f988857cff25d2b1c709c60f390fff1d62c Mon Sep 17 00:00:00 2001 From: Mateusz Morusiewicz <11313015+Ruteri@users.noreply.github.com> Date: Fri, 3 Jun 2022 10:34:22 +0200 Subject: [PATCH] Adjust base fee encoding (#5) --- builder/backend.go | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/backend.go b/builder/backend.go index 7597666d577e..d014a7efb27c 100644 --- a/builder/backend.go +++ b/builder/backend.go @@ -412,7 +412,7 @@ func executableDataToExecutionPayload(data *beacon.ExecutableDataV1) *boostTypes GasUsed: data.GasUsed, Timestamp: data.Timestamp, ExtraData: data.ExtraData, - BaseFeePerGas: [32]byte(common.BytesToHash(data.BaseFeePerGas.Bytes())), + BaseFeePerGas: *new(boostTypes.U256Str).FromBig(data.BaseFeePerGas), BlockHash: [32]byte(data.BlockHash), Transactions: transactionData, } diff --git a/go.sum b/go.sum index 69bd8f563c44..46e55289f472 100644 --- a/go.sum +++ b/go.sum @@ -171,6 +171,8 @@ github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlK github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/flashbots/go-boost-utils v0.1.3-0.20220601182529-417a64679a5d h1:hoqkcRKMupXCWW38fDfvNcuIxl9eCAZrguw3dNCw+Qg= github.com/flashbots/go-boost-utils v0.1.3-0.20220601182529-417a64679a5d/go.mod h1:v4f01OjPm5jFjzVhcJEKHLFZzX/yTeme9284Tbuah8s= +github.com/flashbots/go-boost-utils v0.1.3-0.20220602181853-0b5ffd891e10 h1:3fbCrMmSOayxCHNkIVUWLFR+q/dR1KeXUD08OXhShBM= +github.com/flashbots/go-boost-utils v0.1.3-0.20220602181853-0b5ffd891e10/go.mod h1:v4f01OjPm5jFjzVhcJEKHLFZzX/yTeme9284Tbuah8s= github.com/flashbots/go-utils v0.4.4 h1:J0LUifVEpVYE+ZbK/DeGay4E3B6+Yh8pKLgfv5A0Oq0= github.com/flashbots/go-utils v0.4.4/go.mod h1:weSbiNnH+xsmK8t3TDDJxluv4+qnwRWmKay2QQa8Yfc= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=