solo_dev

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAccountNonceFunc

type GetAccountNonceFunc func(address *types.Address) uint64

type NodeDev

type NodeDev struct {
	GetAccountNonce GetAccountNonceFunc
	// contains filtered or unexported fields
}

func NewNode

func NewNode(config *common.Config) (*NodeDev, error)

func (*NodeDev) Commit

func (n *NodeDev) Commit() chan *common.CommitEvent

func (*NodeDev) DelNode

func (n *NodeDev) DelNode(_ uint64) error

func (*NodeDev) GetAccountPoolMeta

func (n *NodeDev) GetAccountPoolMeta(account string, full bool) *common.AccountMeta

func (*NodeDev) GetLowWatermark

func (n *NodeDev) GetLowWatermark() uint64

func (*NodeDev) GetPendingTxByHash

func (n *NodeDev) GetPendingTxByHash(_ *types.Hash) *types.Transaction

func (*NodeDev) GetPendingTxCountByAccount

func (n *NodeDev) GetPendingTxCountByAccount(account string) uint64

func (*NodeDev) GetPoolMeta

func (n *NodeDev) GetPoolMeta(full bool) *common.Meta

func (*NodeDev) GetTotalPendingTxCount

func (n *NodeDev) GetTotalPendingTxCount() uint64

func (*NodeDev) Prepare

func (n *NodeDev) Prepare(tx *types.Transaction) error

func (*NodeDev) Quorum

func (n *NodeDev) Quorum() uint64

func (*NodeDev) Ready

func (n *NodeDev) Ready() error

func (*NodeDev) ReportState

func (n *NodeDev) ReportState(height uint64, blockHash *types.Hash, txPointerList []*events.TxPointer, _ *consensus.Checkpoint, _ bool)

func (*NodeDev) Start

func (n *NodeDev) Start() error

func (*NodeDev) Step

func (n *NodeDev) Step(_ []byte) error

func (*NodeDev) Stop

func (n *NodeDev) Stop()

func (*NodeDev) SubmitTxsFromRemote

func (n *NodeDev) SubmitTxsFromRemote(_ [][]byte) error

func (*NodeDev) SubscribeMockBlockEvent

func (n *NodeDev) SubscribeMockBlockEvent(ch chan<- events.ExecutedEvent) event.Subscription

func (*NodeDev) SubscribeTxEvent

func (n *NodeDev) SubscribeTxEvent(events chan<- []*types.Transaction) event.Subscription

Jump to

Keyboard shortcuts

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