Documentation ¶
Index ¶
- Variables
- func AddBlock(block *types.Block)
- func AddHeader(header *types.Header)
- func AddHeaders(headers []*types.Header)
- func AddTransaction(transaction *types.Transaction)
- func CheckTransaction(hash common.Uint256) (bool, error)
- func GetBlockByHash(hash common.Uint256) (*types.Block, error)
- func GetBlockByHeight(height uint32) (*types.Block, error)
- func GetBlockHashByHeight(height uint32) (common.Uint256, error)
- func GetCurrentBlockHash() (common.Uint256, error)
- func GetCurrentBlockHeight() (uint32, error)
- func GetCurrentHeaderHash() (common.Uint256, error)
- func GetCurrentHeaderHeight() (uint32, error)
- func GetHeaderByHash(hash common.Uint256) (*types.Header, error)
- func GetHeaderByHeight(height uint32) (*types.Header, error)
- func GetPendingTxn(byCount bool) ([]*types.Transaction, error)
- func GetTransaction(hash common.Uint256) (*types.Transaction, error)
- func GetTransactionStats(hash common.Uint256) ([]uint64, error)
- func GetTransactionStatus(hash common.Uint256) ([]*tc.TXAttr, error)
- func GetTxnFromLedger(hash common.Uint256) (*types.Transaction, error)
- func GetTxnPool(byCount bool) ([]*tc.TXEntry, error)
- func InitNetServer(netNode protocol.Noder) (*actor.PID, error)
- func IsContainBlock(hash common.Uint256) (bool, error)
- func SetConsensusPid(conPid *actor.PID)
- func SetLedgerPid(ledgerPid *actor.PID)
- func SetTxnPoolPid(txnPid *actor.PID)
- func VerifyBlock(height uint32, txs []*types.Transaction) ([]*tc.VerifyTxResult, error)
- type GetConnectionCntReq
- type GetConnectionCntRsp
- type GetConnectionStateReq
- type GetConnectionStateRsp
- type GetConsensusPortReq
- type GetConsensusPortRsp
- type GetNeighborAddrsReq
- type GetNeighborAddrsRsp
- type GetNodeIdReq
- type GetNodeIdRsp
- type GetNodePortReq
- type GetNodePortRsp
- type GetNodeTimeReq
- type GetNodeTimeRsp
- type GetNodeTypeReq
- type GetNodeTypeRsp
- type GetNodeVersionReq
- type GetNodeVersionRsp
- type GetRelayStateReq
- type GetRelayStateRsp
- type NetServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsensusPid *actor.PID
Functions ¶
func AddHeaders ¶
func AddTransaction ¶
func AddTransaction(transaction *types.Transaction)
func GetCurrentBlockHash ¶
func GetCurrentBlockHeight ¶
func GetCurrentHeaderHash ¶
func GetCurrentHeaderHeight ¶
func GetPendingTxn ¶
func GetPendingTxn(byCount bool) ([]*types.Transaction, error)
func GetTransaction ¶
func GetTransaction(hash common.Uint256) (*types.Transaction, error)
func GetTxnFromLedger ¶
func GetTxnFromLedger(hash common.Uint256) (*types.Transaction, error)
func SetConsensusPid ¶
func SetLedgerPid ¶
func SetTxnPoolPid ¶
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 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
}
Click to show internal directories.
Click to hide internal directories.