erigon-pulse/core/block_proposer.go
Andrew Ashikhmin 37ccbc53d6
Refactor payload building (#3592)
* Bump MaxPendingPayloads

* UnknownPayload error

* Improve ExchangeTransitionConfigurationV1 comment

* Extract MakeEmptyHeader

* Move MakeEmptyHeader to chain_makers

* Start with empty block as pending payload

* Only build payloads with the right parent hash

* Double check parent hash in SpawnMiningCreateBlockStage

* Simpler error formatting

* ReadHeadBlockHash instead of ReadHeadHeaderHash

* Avoid rebuilding already built blocks

* getPayload should stop the build process

* Tweaking stageLoopIsBusy

* Don't update pending payload after engine_getPayload
2022-02-23 21:27:38 +01:00

12 lines
350 B
Go

package core
import "github.com/ledgerwatch/erigon/common"
// See https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#payloadattributesv1
type BlockProposerParametersPOS struct {
ParentHash common.Hash
Timestamp uint64
PrevRandao common.Hash
SuggestedFeeRecipient common.Address
}