Documentation ¶
Index ¶
- Constants
- func UseLogger(logger l.Logger)
- type Block
- func (b *Block) Accept() error
- func (b *Block) Bytes() []byte
- func (b *Block) Hash() common.Hash
- func (b *Block) Height() uint64
- func (b *Block) ID() *hash.Hash
- func (b *Block) Number() uint64
- func (b *Block) Parent() *hash.Hash
- func (b *Block) ParentState() model.BlockState
- func (b *Block) Reject() error
- func (b *Block) SetStatus(status consensus.Status)
- func (b *Block) StateRoot() common.Hash
- func (b *Block) Status() consensus.Status
- func (b *Block) String() string
- func (b *Block) Timestamp() time.Time
- func (b *Block) Transactions() []model.Tx
- func (b *Block) Verify() error
- type VM
- func (vm *VM) AddTxToMempool(tx *qtypes.Transaction, local bool) (int64, error)
- func (vm *VM) BlockChain() *core.BlockChain
- func (vm *VM) Bootstrapped() error
- func (vm *VM) Bootstrapping() error
- func (vm *VM) BuildBlock(txs []model.Tx) (consensus.Block, error)
- func (vm *VM) ChainDatabase() ethdb.Database
- func (vm *VM) CheckConnectBlock(block consensus.Block) error
- func (vm *VM) ConnectBlock(block consensus.Block) (uint64, error)
- func (vm *VM) DisconnectBlock(block consensus.Block) (uint64, error)
- func (vm *VM) Genesis() *hash.Hash
- func (vm *VM) GetBalance(addre string) (int64, error)
- func (vm *VM) GetBlock(bh *hash.Hash) (consensus.Block, error)
- func (vm *VM) GetBlockByNumber(num uint64) (consensus.Block, error)
- func (vm *VM) GetBlockIDByTxHash(txhash *hash.Hash) uint64
- func (vm *VM) GetCurHeader() *types.Header
- func (vm *VM) GetCurStateRoot() common.Hash
- func (vm *VM) GetID() string
- func (vm *VM) GetMempoolSize() int64
- func (vm *VM) GetTxsFromMempool() ([]*qtypes.Transaction, []*hash.Hash, error)
- func (vm *VM) HasTx(h *hash.Hash) bool
- func (vm *VM) Initialize(ctx consensus.Context) error
- func (vm *VM) LastAccepted() (*hash.Hash, error)
- func (vm *VM) ParseBlock([]byte) (consensus.Block, error)
- func (vm *VM) PrepareEnvironment(state model.BlockState) (*types.Header, error)
- func (vm *VM) RegisterAPIs(apis []api.API)
- func (vm *VM) RemoveTxFromMempool(tx *qtypes.Transaction) error
- func (vm *VM) ResetTemplate() error
- func (vm *VM) RewindTo(state model.BlockState) error
- func (vm *VM) SetLogLevel(level string)
- func (vm *VM) Shutdown() error
- func (vm *VM) VerifyTx(tx model.Tx) (int64, error)
- func (vm *VM) VerifyTxSanity(tx model.Tx) error
- func (vm *VM) Version() string
Constants ¶
View Source
const (
MeerEVMID = "meerevm"
)
meerevm ID of the platform
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func (*Block) ParentState ¶ added in v1.0.21
func (b *Block) ParentState() model.BlockState
func (*Block) Transactions ¶
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
func (*VM) AddTxToMempool ¶
func (*VM) BlockChain ¶ added in v1.0.21
func (vm *VM) BlockChain() *core.BlockChain
func (*VM) Bootstrapped ¶
func (*VM) Bootstrapping ¶
func (*VM) ChainDatabase ¶ added in v1.0.21
func (*VM) GetBlockByNumber ¶ added in v1.0.20
func (*VM) GetBlockIDByTxHash ¶ added in v1.0.19
func (*VM) GetCurHeader ¶ added in v1.0.21
func (*VM) GetCurStateRoot ¶ added in v1.0.21
func (*VM) GetMempoolSize ¶
func (*VM) GetTxsFromMempool ¶
func (*VM) PrepareEnvironment ¶ added in v1.0.21
func (*VM) RegisterAPIs ¶
func (*VM) RemoveTxFromMempool ¶
func (vm *VM) RemoveTxFromMempool(tx *qtypes.Transaction) error
func (*VM) ResetTemplate ¶
func (*VM) SetLogLevel ¶
Click to show internal directories.
Click to hide internal directories.