backend

package
v0.0.0-...-481a8b4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: GPL-3.0 Imports: 24 Imported by: ? modules, 0 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

Backend handles the chain database and VM #stable - 0.4.0

func NewBackend

func NewBackend(ctx *node.ServiceContext, ethConfig *eth.Config,
	client *rpcClient.HTTP) (*Backend, error)

NewBackend creates a new Backend #stable - 0.4.0

func (*Backend) APIs

func (b *Backend) APIs() []rpc.API

APIs returns the collection of RPC services the ethereum package offers. #stable - 0.4.0

func (*Backend) AccumulateRewards

func (b *Backend) AccumulateRewards(strategy *emtTypes.Strategy)

AccumulateRewards accumulates the rewards based on the given strategy #unstable

func (*Backend) AddNonce

func (b *Backend) AddNonce(addr common.Address)

called by ultron tx only in deliver_tx

func (*Backend) BroadcastPtxSync

func (b *Backend) BroadcastPtxSync(ptx *ethereum.ParalleledTransaction) (*ctypes.ResultBroadcastTx, error)

func (*Backend) BroadcastTxCommit

func (b *Backend) BroadcastTxCommit(tx *ethTypes.Transaction) (*ctypes.ResultBroadcastTxCommit, error)

func (*Backend) BroadcastTxSync

func (b *Backend) BroadcastTxSync(tx *ethTypes.Transaction) (*ctypes.ResultBroadcastTx, error)

BroadcastTx broadcasts a transaction to tendermint core #unstable

func (*Backend) CheckTx

func (*Backend) Commit

func (b *Backend) Commit(receiver common.Address) (common.Hash, error)

Commit finalises the current block #unstable

func (*Backend) Config

func (b *Backend) Config() *eth.Config

Config returns the eth.Config. #stable

func (*Backend) DeliverPtx

func (*Backend) DeliverTx

DeliverTx appends a transaction to the current block #stable

func (*Backend) EndBlock

func (b *Backend) EndBlock()

func (*Backend) Ethereum

func (b *Backend) Ethereum() *eth.Ethereum

Ethereum returns the underlying the ethereum object. #stable

func (*Backend) GasLimit

func (b *Backend) GasLimit() big.Int

GasLimit returns the maximum gas per block #unstable

func (*Backend) GetTotalUsedGasFee

func (b *Backend) GetTotalUsedGasFee() *big.Int

func (*Backend) InitEthState

func (b *Backend) InitEthState(receiver common.Address) error

InitEthState initializes the EthState #unstable

func (*Backend) IsPtxEnabled

func (b *Backend) IsPtxEnabled() bool

func (*Backend) ManagedState

func (b *Backend) ManagedState() *state.ManagedState

func (*Backend) Protocols

func (b *Backend) Protocols() []p2p.Protocol

Protocols implements node.Service, returning all the currently configured network protocols to start. #stable

func (*Backend) ResetState

func (b *Backend) ResetState() (*state.ManagedState, error)

func (*Backend) SetTMNode

func (b *Backend) SetTMNode(tmNode *tmn.Node)

func (*Backend) Start

func (b *Backend) Start(_ *p2p.Server) error

Start implements node.Service, starting all internal goroutines needed by the Ethereum protocol implementation. #stable

func (*Backend) Stop

func (b *Backend) Stop() error

Stop implements node.Service, terminating all internal goroutines used by the Ethereum protocol. #stable

func (*Backend) UpdateHeaderWithTimeInfo

func (b *Backend) UpdateHeaderWithTimeInfo(tmHeader *abciTypes.Header)

UpdateHeaderWithTimeInfo uses the tendermint header to update the ethereum header #unstable

func (*Backend) UpdateProposer

func (b *Backend) UpdateProposer()

type NullBlockProcessor

type NullBlockProcessor struct{}

NullBlockProcessor does not validate anything #unstable

func (NullBlockProcessor) ValidateBody

func (NullBlockProcessor) ValidateBody(*ethTypes.Block) error

ValidateBody does not validate anything #unstable

func (NullBlockProcessor) ValidateState

func (NullBlockProcessor) ValidateState(block, parent *ethTypes.Block, state *state.StateDB,
	receipts ethTypes.Receipts, usedGas *big.Int) error

ValidateState does not validate anything #unstable

type SendTxArgs

type SendTxArgs struct {
	From     common.Address  `json:"from"`
	To       *common.Address `json:"to"`
	Gas      *hexutil.Big    `json:"gas"`
	GasPrice *hexutil.Big    `json:"gasPrice"`
	Value    *hexutil.Big    `json:"value"`
	Data     hexutil.Bytes   `json:"data"`
	Nonce    *hexutil.Uint64 `json:"nonce"`
}

SendTxArgs represents the arguments to sumbit a new transaction

Directories

Path Synopsis
cmd
utils
nolint=lll
nolint=lll
strategies

Jump to

Keyboard shortcuts

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