core

package
v0.0.0-...-77b6ffe Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockBroadcastEvent

type BlockBroadcastEvent struct{}

type BlockReadyEvent

type BlockReadyEvent struct {
	Block *types.Block
}

BlockReadyEvent will be post after block pool received a block and store into pool.

type BloomFilter

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

BloomFilter is used to accelerate the process of checking a bytes is existed or not

type CommitBlockEvent

type CommitBlockEvent struct {
	Block *types.Block
}

type CommitCompleteEvent

type CommitCompleteEvent struct {
	Block *types.Block
}

type ConsensusEvent

type ConsensusEvent struct {
	Block    *types.Block
	Receipts types.Receipts
}

ConsensusEvent will be posted after a new block proposed by the BP completed execution without errors

type ErrOccurEvent

type ErrOccurEvent struct {
	Err error
}

ErrOccurEvent will be posted when some errors occur during executor processing.

type ExecBlockEvent

type ExecBlockEvent struct {
	Block *types.Block
}

type ExecFinishEvent

type ExecFinishEvent struct {
	Res bool // exec result.If success,set true
}

type ExecPendingTxEvent

type ExecPendingTxEvent struct {
	Txs types.Transactions
}

type NewBlockEvent

type NewBlockEvent struct {
	Block *types.Block
}

Block events

type NewReceiptsEvent

type NewReceiptsEvent struct {
	Block    *types.Block
	Receipts types.Receipts
}

NewReceiptsEvent will be posted after a block from other nodes come in, completed execution without errors and passed verification.

type NewTxEvent

type NewTxEvent struct {
	Tx *types.Transaction
}

Transaction events

type NewTxsEvent

type NewTxsEvent struct {
	Txs types.Transactions
}

type ProposeBlockEvent

type ProposeBlockEvent struct {
	Block *types.Block
}

type RollbackEvent

type RollbackEvent struct{}

type TxBroadcastEvent

type TxBroadcastEvent struct{}

Directories

Path Synopsis
Bucket merkle tree implementaion
Bucket merkle tree implementaion
vm
evm
evm/abi
Package abi implements the Ethereum ABI (Application Binary Interface).
Package abi implements the Ethereum ABI (Application Binary Interface).
evm/crypto/bn256
Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
evm/crypto/bn256/cloudflare
Package bn256 implements a particular bilinear group at the 128-bit security level.
Package bn256 implements a particular bilinear group at the 128-bit security level.
evm/crypto/bn256/google
Package bn256 implements a particular bilinear group.
Package bn256 implements a particular bilinear group.
evm/crypto/secp256k1
Package secp256k1 wraps the bitcoin secp256k1 C library.
Package secp256k1 wraps the bitcoin secp256k1 C library.
evm/crypto/sha3
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
evm/hexutil
Package hexutil implements hex encoding with 0x prefix.
Package hexutil implements hex encoding with 0x prefix.
evm/math
Package math provides integer math utilities.
Package math provides integer math utilities.
evm/runtime
Package runtime provides a basic execution model for executing EVM code.
Package runtime provides a basic execution model for executing EVM code.

Jump to

Keyboard shortcuts

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