Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidForkchoiceUpdateResult ¶
func ValidForkchoiceUpdateResult(headBlockHash *common.Hash, id *engine.PayloadID) *opeth.ForkchoiceUpdatedResult
ValidForkchoiceUpdateResult returns a valid ForkchoiceUpdateResult with given head block hash.
Types ¶
type Application ¶
type Application interface { Info(context.Context, *abcitypes.RequestInfo) (*abcitypes.ResponseInfo, error) Query(context.Context, *abcitypes.RequestQuery) (*abcitypes.ResponseQuery, error) CheckTx(context.Context, *abcitypes.RequestCheckTx) (*abcitypes.ResponseCheckTx, error) InitChain(context.Context, *abcitypes.RequestInitChain) (*abcitypes.ResponseInitChain, error) FinalizeBlock(context.Context, *abcitypes.RequestFinalizeBlock) (*abcitypes.ResponseFinalizeBlock, error) Commit(context.Context, *abcitypes.RequestCommit) (*abcitypes.ResponseCommit, error) RollbackToHeight(context.Context, uint64) error }
type Block ¶
func (*Block) ToCometLikeBlock ¶
func (*Block) ToEthLikeBlock ¶
This trick is played by the eth rpc server too. Instead of constructing an actual eth block, simply create a map with the right keys so the client can unmarshal it into a block
type Header ¶
type PayloadAttributes ¶
type PayloadAttributes struct { Timestamp uint64 PrevRandao [32]byte SuggestedFeeRecipient common.Address Withdrawals *ethtypes.Withdrawals NoTxPool bool GasLimit uint64 ParentBeaconBlockRoot *common.Hash ParentHash common.Hash Height int64 Transactions []hexutil.Bytes CosmosTxs bfttypes.Txs // contains filtered or unexported fields }
func (*PayloadAttributes) ID ¶
func (p *PayloadAttributes) ID() *engine.PayloadID
ID returns a PaylodID (a hash) from a PayloadAttributes when it's applied to a head block. Hashing does not conform to go-ethereum/miner/payload_building.go PayloadID is only calculated once, and cached for future calls.
Directories ¶
Path | Synopsis |
---|---|
app
|
|
gen
|
|
rollup/module/v1
Code generated by protoc-gen-go-pulsar.
|
Code generated by protoc-gen-go-pulsar. |
testapp/module/v1
Code generated by protoc-gen-go-pulsar.
|
Code generated by protoc-gen-go-pulsar. |
x
|
|
Click to show internal directories.
Click to hide internal directories.