core

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrKnownBlock is returned when a block to import is already known locally.
	ErrKnownBlock = errors.New("block already known")

	// ErrBlacklistedHash is returned if a block to import is on the blacklist.
	ErrBlacklistedHash = errors.New("blacklisted hash")

	// ErrNonceTooHigh is returned if the nonce of a transaction is higher than the
	// next one expected based on the local chain.
	ErrNonceTooHigh = errors.New("nonce too high")

	// ErrNonceTooLow is returned if the nonce of a transaction is lower than the
	// one present in the local chain.
	ErrNonceTooLow = errors.New("nonce too low")
)

Functions

This section is empty.

Types

type ChainEvent

type ChainEvent struct {
	Block *block.Block
	Hash  types.Hash
	Logs  []*transaction.Log
}

type ChainHeadEvent

type ChainHeadEvent struct{ Block *block.Block }

type ChainSideEvent

type ChainSideEvent struct {
	Block *block.Block
}

type NewProducedBlockEvent

type NewProducedBlockEvent struct{ Block *block.Block }

NewProducedBlockEvent is posted when a block has been imported.

type PendingLogsEvent

type PendingLogsEvent struct {
	Logs []*transaction.Log
}

PendingLogsEvent is posted pre producing and notifies of pending logs.

type PendingStateEvent

type PendingStateEvent struct{}

PendingStateEvent is posted pre producing and notifies of pending state changes.

type RemovedLogsEvent

type RemovedLogsEvent struct{ Logs []*transaction.Log }

RemovedLogsEvent is posted when a reorg happens

type RemovedTransactionEvent

type RemovedTransactionEvent struct{ Txs transaction.Transactions }

RemovedTransactionEvent is posted when a reorg happens

type TxPreEvent

type TxPreEvent struct{ Tx *transaction.Transaction }

TxPreEvent is posted when a transaction enters the transaction pool.

Directories

Path Synopsis
contract/jsre/deps
Package deps contains the console JavaScript dependencies Go embedded.
Package deps contains the console JavaScript dependencies Go embedded.
jsre/deps
Package deps contains the console JavaScript dependencies Go embedded.
Package deps contains the console JavaScript dependencies Go embedded.
Package state provides a caching layer atop the Ethereum state trie.
Package state provides a caching layer atop the Ethereum state trie.

Jump to

Keyboard shortcuts

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