node

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitNode

func InitNode(pubKey *crypto.PubKey) Noder

func NewNode

func NewNode() *node

func NonTLSDial

func NonTLSDial(nodeAddr string) (net.Conn, error)

func TLSDial

func TLSDial(nodeAddr string) (net.Conn, error)

Types

type ConnectingNodes

type ConnectingNodes struct {
	sync.RWMutex
	ConnectingAddrs []string
}

type RetryConnAddrs

type RetryConnAddrs struct {
	sync.RWMutex
	RetryAddrs map[string]int
}

type TXNPool

type TXNPool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*TXNPool) AppendTxnPool

func (this *TXNPool) AppendTxnPool(txn *transaction.Transaction, poolVerify bool) ErrCode

func (*TXNPool) CleanSubmittedTransactions

func (this *TXNPool) CleanSubmittedTransactions(block *ledger.Block) error

func (*TXNPool) GetTransaction

func (this *TXNPool) GetTransaction(hash common.Uint256) *transaction.Transaction

func (*TXNPool) GetTransactionCount

func (this *TXNPool) GetTransactionCount() int

func (*TXNPool) GetTxnPool

func (this *TXNPool) GetTxnPool(byCount bool) map[common.Uint256]*transaction.Transaction

Jump to

Keyboard shortcuts

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