minter

package
v1.0.4-testnet Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 24 Imported by: 7 modules, 17 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Global validator's statuses
	ValidatorPresent = 1
	ValidatorAbsent  = 2

	BlockMaxBytes = 10000000

	DefaultMaxGas = 100000
	MinMaxGas     = 5000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

type Blockchain struct {
	abciTypes.BaseApplication
	// contains filtered or unexported fields
}

Main structure of Minter Blockchain

func NewMinterBlockchain

func NewMinterBlockchain(cfg *config.Config) *Blockchain

Creates Minter Blockchain instance, should be only called once

func (*Blockchain) BeginBlock

Signals the beginning of a block.

func (*Blockchain) CheckTx

Validate a tx for the mempool

func (*Blockchain) Commit

func (app *Blockchain) Commit() abciTypes.ResponseCommit

Commit the state and return the application Merkle root hash

func (*Blockchain) CurrentState

func (app *Blockchain) CurrentState() *state.StateDB

Get immutable state of Minter Blockchain

func (*Blockchain) DeliverTx

Deliver a tx for full processing

func (*Blockchain) EndBlock

Signals the end of a block, returns changes to the validator set

func (*Blockchain) GetBlocksTimeDelta added in v0.12.1

func (app *Blockchain) GetBlocksTimeDelta(height, count uint64) (int, error)

func (*Blockchain) GetStateForHeight

func (app *Blockchain) GetStateForHeight(height uint64) (*state.StateDB, error)

Get immutable state of Minter Blockchain for given height

func (*Blockchain) Height

func (app *Blockchain) Height() uint64

Get current height of Minter Blockchain

func (*Blockchain) Info

func (app *Blockchain) Info(req abciTypes.RequestInfo) (resInfo abciTypes.ResponseInfo)

Return application info. Used for synchronization between Tendermint and Minter

func (*Blockchain) InitChain

Initialize blockchain with validators and other info. Only called once.

func (*Blockchain) LastCommittedHeight added in v0.7.5

func (app *Blockchain) LastCommittedHeight() uint64

Get last committed height of Minter Blockchain

func (*Blockchain) MinGasPrice added in v0.10.0

func (app *Blockchain) MinGasPrice() uint32

Get minimal acceptable gas price

func (*Blockchain) Query

Unused method, required by Tendermint

func (*Blockchain) SetBlocksTimeDelta added in v0.12.1

func (app *Blockchain) SetBlocksTimeDelta(height uint64, value int)

func (*Blockchain) SetOption

Unused method, required by Tendermint

func (*Blockchain) SetTmNode added in v0.9.0

func (app *Blockchain) SetTmNode(node *tmNode.Node)

Set Tendermint node

func (*Blockchain) Stop

func (app *Blockchain) Stop()

Gracefully stopping Minter Blockchain instance

Jump to

Keyboard shortcuts

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