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
|
2022-12-01 08:15:01 +00:00
|
|
|
// See also https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#payloadattributesv2
|
2022-06-13 13:43:09 +00:00
|
|
|
type BlockBuilderParameters struct {
|
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
|
2022-12-01 08:15:01 +00:00
|
|
|
Withdrawals []*types.Withdrawal
|
2022-09-20 12:15:56 +00:00
|
|
|
PayloadId uint64
|
2022-02-23 20:27:38 +00:00
|
|
|
}
|