2022-02-23 20:27:38 +00:00
|
|
|
package core
|
|
|
|
|
2022-12-01 08:15:01 +00:00
|
|
|
import (
|
2023-01-13 18:12:18 +00:00
|
|
|
libcommon "github.com/ledgerwatch/erigon-lib/common"
|
|
|
|
|
2022-12-01 08:15:01 +00:00
|
|
|
"github.com/ledgerwatch/erigon/core/types"
|
|
|
|
)
|
2022-02-23 20:27:38 +00:00
|
|
|
|
2022-06-13 13:43:09 +00:00
|
|
|
// Parameters for PoS block building
|
2023-08-06 09:54:14 +00:00
|
|
|
// See also https://github.com/ethereum/execution-apis/blob/main/src/engine/cancun.md#payloadattributesv3
|
2022-06-13 13:43:09 +00:00
|
|
|
type BlockBuilderParameters struct {
|
2023-08-06 09:54:14 +00:00
|
|
|
PayloadId uint64
|
2023-01-13 18:12:18 +00:00
|
|
|
ParentHash libcommon.Hash
|
2022-02-23 20:27:38 +00:00
|
|
|
Timestamp uint64
|
2023-01-13 18:12:18 +00:00
|
|
|
PrevRandao libcommon.Hash
|
|
|
|
SuggestedFeeRecipient libcommon.Address
|
2023-08-06 09:54:14 +00:00
|
|
|
Withdrawals []*types.Withdrawal // added in Shapella (EIP-4895)
|
|
|
|
ParentBeaconBlockRoot *libcommon.Hash // added in Dencun (EIP-4788)
|
2022-02-23 20:27:38 +00:00
|
|
|
}
|