File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -399,14 +399,13 @@ func executableDataToExecutionPayload(data *beacon.ExecutableDataV1) *boostTypes
399399 for i , tx := range data .Transactions {
400400 transactionData [i ] = hexutil .Bytes (tx )
401401 }
402- logsBloom := boostTypes.Bloom {}
403- logsBloom .FromSlice (data .LogsBloom )
402+
404403 return & boostTypes.ExecutionPayload {
405404 ParentHash : [32 ]byte (data .ParentHash ),
406405 FeeRecipient : [20 ]byte (data .FeeRecipient ),
407406 StateRoot : [32 ]byte (data .StateRoot ),
408407 ReceiptsRoot : [32 ]byte (data .ReceiptsRoot ),
409- LogsBloom : logsBloom ,
408+ LogsBloom : boostTypes . Bloom ( types . BytesToBloom ( data . LogsBloom )) ,
410409 Random : [32 ]byte (data .Random ),
411410 BlockNumber : data .Number ,
412411 GasLimit : data .GasLimit ,
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ func TestGetHeader(t *testing.T) {
118118 BlockHash : common .HexToHash ("0xbfbfbfb" ),
119119 BaseFeePerGas : big .NewInt (12 ),
120120 ExtraData : []byte {},
121+ LogsBloom : []byte {0x00 , 0x05 , 0x10 },
121122 }
122123 forkchoiceBlock := & types.Block {
123124 Profit : big .NewInt (10 ),
Original file line number Diff line number Diff line change @@ -169,10 +169,8 @@ github.com/fjl/gencodec v0.0.0-20220412091415-8bb9e558978c h1:CndMRAH4JIwxbW8KYq
169169github.com/fjl/gencodec v0.0.0-20220412091415-8bb9e558978c /go.mod h1:AzA8Lj6YtixmJWL+wkKoBGsLWy9gFrAzi4g+5bCKwpY =
170170github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c =
171171github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 /go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0 =
172- github.com/flashbots/go-boost-utils v0.1.2 h1:xcwO6rhLmdbZ+ttN8PjHQynqY1pm+RCA56eGP9wPp10 =
173- github.com/flashbots/go-boost-utils v0.1.2 /go.mod h1:v4f01OjPm5jFjzVhcJEKHLFZzX/yTeme9284Tbuah8s =
174- github.com/flashbots/go-boost-utils v0.1.3-0.20220601173756-01db408b8c89 h1:3wVzFGJbXm8BjuFav3ZPKFAz01IY6JDjV38b3Ccuk2I =
175- github.com/flashbots/go-boost-utils v0.1.3-0.20220601173756-01db408b8c89 /go.mod h1:v4f01OjPm5jFjzVhcJEKHLFZzX/yTeme9284Tbuah8s =
172+ github.com/flashbots/go-boost-utils v0.1.3-0.20220601182529-417a64679a5d h1:hoqkcRKMupXCWW38fDfvNcuIxl9eCAZrguw3dNCw+Qg =
173+ github.com/flashbots/go-boost-utils v0.1.3-0.20220601182529-417a64679a5d /go.mod h1:v4f01OjPm5jFjzVhcJEKHLFZzX/yTeme9284Tbuah8s =
176174github.com/flashbots/go-utils v0.4.4 h1:J0LUifVEpVYE+ZbK/DeGay4E3B6+Yh8pKLgfv5A0Oq0 =
177175github.com/flashbots/go-utils v0.4.4 /go.mod h1:weSbiNnH+xsmK8t3TDDJxluv4+qnwRWmKay2QQa8Yfc =
178176github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90 /go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k =
You can’t perform that action at this time.
0 commit comments