blockchain

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

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

func LoadOrNewBlockchain

func LoadOrNewBlockchain(db dbm.DB, gen *proposal.Genesis, myVal crypto.Signer) (*Blockchain, error)

func (*Blockchain) ChainID

func (bc *Blockchain) ChainID() string

func (*Blockchain) CommitBlock

func (bc *Blockchain) CommitBlock(blockTime time.Time, blockHash []byte) ([]byte, error)

func (*Blockchain) EvaluateSortition

func (bc *Blockchain) EvaluateSortition(blockHeight uint64, blockHash []byte)

func (*Blockchain) Genesis

func (bc *Blockchain) Genesis() *proposal.Genesis

func (*Blockchain) GenesisHash

func (bc *Blockchain) GenesisHash() []byte

func (*Blockchain) LastAppHash

func (bc *Blockchain) LastAppHash() []byte

func (*Blockchain) LastBlockHash

func (bc *Blockchain) LastBlockHash() []byte

func (*Blockchain) LastBlockHeight

func (bc *Blockchain) LastBlockHeight() uint64

func (*Blockchain) LastBlockTime

func (bc *Blockchain) LastBlockTime() time.Time

func (*Blockchain) MaximumPower

func (bc *Blockchain) MaximumPower() int

func (*Blockchain) State

func (bc *Blockchain) State() *state.State

func (*Blockchain) ValidatorSet

func (bc *Blockchain) ValidatorSet() *validator.ValidatorSet

func (*Blockchain) VerifySortition

func (bc *Blockchain) VerifySortition(blockHash []byte, publicKey crypto.PublicKey, info uint64, proof []byte) bool

Jump to

Keyboard shortcuts

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