eth/catalyst: respect slot num if specified in payload attributes for testing_buildBlockV1 (#34722)

This is a copy of #34721 but against `master` (rather than
`bal-devnet-3`), as requested by @jwasinger, since the slotnum logic now
exists on `master` as well.
This commit is contained in:
felipe 2026-04-14 17:00:29 -06:00 committed by GitHub
parent 2253fce48d
commit c9fea44616
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,6 +74,7 @@ func (api *testingAPI) BuildBlockV1(parentHash common.Hash, payloadAttributes en
Random: payloadAttributes.Random,
Withdrawals: payloadAttributes.Withdrawals,
BeaconRoot: payloadAttributes.BeaconRoot,
SlotNum: payloadAttributes.SlotNumber,
}
return api.eth.Miner().BuildTestingPayload(args, txs, buildEmpty, extra)
}