Versions in this module Expand all Collapse all v1 v1.10.3 Dec 16, 2024 v1.10.2 Dec 15, 2024 Changes in this version + func GetNewEpoch(chain core.BlockChain) *big.Int + type Environment interface + CurrentHeader func() *block.Header + type Worker struct + func New(chain core.BlockChain, beacon core.BlockChain) *Worker + func (w *Worker) ApplyShardReduction() + func (w *Worker) CollectVerifiedSlashes() error + func (w *Worker) CommitReceipts(receiptsList []*types.CXReceiptsProof) error + func (w *Worker) CommitSortedTransactions(txs *types.TransactionsByPriceAndNonce, coinbase common.Address) + func (w *Worker) CommitTransactions(pendingNormal map[common.Address]types.Transactions, ...) error + func (w *Worker) FinalizeNewBlock(commitSigs chan []byte, viewID func() uint64, coinbase common.Address, ...) (*types.Block, error) + func (w *Worker) GasCeil() uint64 + func (w *Worker) GasFloor(epoch *big.Int) uint64 + func (w *Worker) GetCurrentHeader() *block.Header + func (w *Worker) GetCurrentReceipts() []*types.Receipt + func (w *Worker) GetCurrentResult() *core.ProcessorResult + func (w *Worker) GetCurrentState() *state.DB + func (w *Worker) UpdateCurrent() (Environment, error)