actor

package
v0.0.0-...-c8e9c26 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsensusPid *actor.PID

Functions

func AddBlock

func AddBlock(block *types.Block)

func AddHeader

func AddHeader(header *types.Header)

func AddHeaders

func AddHeaders(headers []*types.Header)

func AddTransaction

func AddTransaction(transaction *types.Transaction)

func CheckTransaction

func CheckTransaction(hash common.Uint256) (bool, error)

func GetBlockByHash

func GetBlockByHash(hash common.Uint256) (*types.Block, error)

func GetBlockByHeight

func GetBlockByHeight(height uint32) (*types.Block, error)

func GetBlockHashByHeight

func GetBlockHashByHeight(height uint32) (common.Uint256, error)

func GetCurrentBlockHash

func GetCurrentBlockHash() (common.Uint256, error)

func GetCurrentBlockHeight

func GetCurrentBlockHeight() (uint32, error)

func GetCurrentHeaderHash

func GetCurrentHeaderHash() (common.Uint256, error)

func GetCurrentHeaderHeight

func GetCurrentHeaderHeight() (uint32, error)

func GetHeaderByHash

func GetHeaderByHash(hash common.Uint256) (*types.Header, error)

func GetHeaderByHeight

func GetHeaderByHeight(height uint32) (*types.Header, error)

func GetPendingTxn

func GetPendingTxn(byCount bool) ([]*types.Transaction, error)

func GetTransaction

func GetTransaction(hash common.Uint256) (*types.Transaction, error)

func GetTransactionStats

func GetTransactionStats(hash common.Uint256) ([]uint64, error)

func GetTransactionStatus

func GetTransactionStatus(hash common.Uint256) ([]*tc.TXAttr, error)

func GetTxnFromLedger

func GetTxnFromLedger(hash common.Uint256) (*types.Transaction, error)

func GetTxnPool

func GetTxnPool(byCount bool) ([]*tc.TXEntry, error)

func InitNetServer

func InitNetServer(netNode protocol.Noder) (*actor.PID, error)

func IsContainBlock

func IsContainBlock(hash common.Uint256) (bool, error)

func SetConsensusPid

func SetConsensusPid(conPid *actor.PID)

func SetLedgerPid

func SetLedgerPid(ledgerPid *actor.PID)

func SetTxnPoolPid

func SetTxnPoolPid(txnPid *actor.PID)

func VerifyBlock

func VerifyBlock(height uint32, txs []*types.Transaction) ([]*tc.VerifyTxResult, error)

Types

type GetConnectionCntReq

type GetConnectionCntReq struct {
}

type GetConnectionCntRsp

type GetConnectionCntRsp struct {
	Cnt uint
}

type GetConnectionStateReq

type GetConnectionStateReq struct {
}

type GetConnectionStateRsp

type GetConnectionStateRsp struct {
	State uint32
}

type GetConsensusPortReq

type GetConsensusPortReq struct {
}

type GetConsensusPortRsp

type GetConsensusPortRsp struct {
	Port uint16
}

type GetNeighborAddrsReq

type GetNeighborAddrsReq struct {
}

type GetNeighborAddrsRsp

type GetNeighborAddrsRsp struct {
	Addrs []protocol.NodeAddr
	Count uint64
}

type GetNodeIdReq

type GetNodeIdReq struct {
}

type GetNodeIdRsp

type GetNodeIdRsp struct {
	Id uint64
}

type GetNodePortReq

type GetNodePortReq struct {
}

type GetNodePortRsp

type GetNodePortRsp struct {
	Port uint16
}

type GetNodeTimeReq

type GetNodeTimeReq struct {
}

type GetNodeTimeRsp

type GetNodeTimeRsp struct {
	Time int64
}

type GetNodeTypeReq

type GetNodeTypeReq struct {
}

type GetNodeTypeRsp

type GetNodeTypeRsp struct {
	NodeType uint64
}

type GetNodeVersionReq

type GetNodeVersionReq struct {
}

type GetNodeVersionRsp

type GetNodeVersionRsp struct {
	Version uint32
}

type GetRelayStateReq

type GetRelayStateReq struct {
}

type GetRelayStateRsp

type GetRelayStateRsp struct {
	Relay bool
}

type NetServer

type NetServer struct{}

func (*NetServer) Receive

func (state *NetServer) Receive(context actor.Context)

Jump to

Keyboard shortcuts

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