Documentation
¶
Index ¶
- Variables
- type DummyEngine
- func NewCoinbaseFaker() *DummyEngine
- func NewDummyEngine(mode Mode, clock *mockable.Clock) *DummyEngine
- func NewETHFaker() *DummyEngine
- func NewFaker() *DummyEngine
- func NewFakerWithClock(clock *mockable.Clock) *DummyEngine
- func NewFakerWithMode(mode Mode) *DummyEngine
- func NewFakerWithModeAndClock(mode Mode, clock *mockable.Clock) *DummyEngine
- func NewFullFaker() *DummyEngine
- func (*DummyEngine) Author(header *types.Header) (common.Address, error)
- func (*DummyEngine) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int
- func (*DummyEngine) Close() error
- func (eng *DummyEngine) Finalize(chain consensus.ChainHeaderReader, block *types.Block, parent *types.Header, ...) error
- func (eng *DummyEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, parent *types.Header, ...) (*types.Block, error)
- func (*DummyEngine) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error
- func (eng *DummyEngine) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error
- func (*DummyEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error
- type Mode
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInsufficientBlockGas = errors.New("insufficient gas to cover the block cost")
)
Functions ¶
This section is empty.
Types ¶
type DummyEngine ¶
type DummyEngine struct {
// contains filtered or unexported fields
}
func NewCoinbaseFaker ¶
func NewCoinbaseFaker() *DummyEngine
func NewDummyEngine ¶
func NewDummyEngine( mode Mode, clock *mockable.Clock, ) *DummyEngine
func NewETHFaker ¶
func NewETHFaker() *DummyEngine
func NewFaker ¶
func NewFaker() *DummyEngine
func NewFakerWithClock ¶
func NewFakerWithClock(clock *mockable.Clock) *DummyEngine
func NewFakerWithMode ¶
func NewFakerWithMode(mode Mode) *DummyEngine
func NewFakerWithModeAndClock ¶
func NewFakerWithModeAndClock(mode Mode, clock *mockable.Clock) *DummyEngine
func NewFullFaker ¶
func NewFullFaker() *DummyEngine
func (*DummyEngine) CalcDifficulty ¶
func (*DummyEngine) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int
func (*DummyEngine) Close ¶
func (*DummyEngine) Close() error
func (*DummyEngine) FinalizeAndAssemble ¶
func (*DummyEngine) Prepare ¶
func (*DummyEngine) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error
func (*DummyEngine) VerifyHeader ¶
func (eng *DummyEngine) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error
func (*DummyEngine) VerifyUncles ¶
func (*DummyEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error
Click to show internal directories.
Click to hide internal directories.