chain

package
v0.0.0-...-623e10f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

Fake chain

func New

func New(cacheLimit int) *Chain

Returns a new fake Chain with blockCache limit 'cacheLimit'

func (*Chain) GetBlock

func (c *Chain) GetBlock(n uint64) common.Block

func (*Chain) GetHead

func (c *Chain) GetHead() string

func (*Chain) InitGenesis

func (c *Chain) InitGenesis()

func (*Chain) StartMiner

func (c *Chain) StartMiner(blockTime string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL