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