mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
d82c778ab3
This PR partially implements [EIP-4895](https://eips.ethereum.org/EIPS/eip-4895): Beacon chain push withdrawals as operations. The new Engine API methods (https://github.com/ethereum/execution-apis/pull/195) are implemented. _Body downloader and saving withdrawals into DB are not implemented yet!_
18 lines
510 B
Go
18 lines
510 B
Go
package core
|
|
|
|
import (
|
|
"github.com/ledgerwatch/erigon/common"
|
|
"github.com/ledgerwatch/erigon/core/types"
|
|
)
|
|
|
|
// Parameters for PoS block building
|
|
// See also https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#payloadattributesv2
|
|
type BlockBuilderParameters struct {
|
|
ParentHash common.Hash
|
|
Timestamp uint64
|
|
PrevRandao common.Hash
|
|
SuggestedFeeRecipient common.Address
|
|
Withdrawals []*types.Withdrawal
|
|
PayloadId uint64
|
|
}
|