Documentation ¶
Index ¶
- Constants
- type BaseMsg
- type BlockData
- type BlockForMining
- type BlockInfo
- type ChainEvent
- type Mine
- type MinerInfo
- type NewNode
- type NewTransaction
- type NodeInfo
- type RawData
- type ReqBlock
- type ReqBlockInfo
- type ReqTransList
- type ReqTransaction
- type TransactionData
- type TransactionInfo
- type TransactionList
Constants ¶
View Source
const ( BroadcastMsg = "broadcast" RandsendMsg = "randsend" )
Internal msg keys
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockForMining ¶
BlockForMining block for mining
type BlockInfo ¶
type BlockInfo struct { Chain uint64 Index uint64 HashPower uint64 Key []byte User []byte PreKey []byte }
BlockInfo response block info
type ChainEvent ¶
ChainEvent ChainEvent
type NewTransaction ¶
NewTransaction internal message
type NodeInfo ¶
type NodeInfo struct { Alias string `json:"alias,omitempty"` Version string `json:"version,omitempty"` RunTime int64 `json:"run_time,omitempty"` NodesConnected int `json:"nodes_connected,omitempty"` MinersConnected int `json:"miners_connected,omitempty"` Height uint64 `json:"height,omitempty"` }
NodeInfo node info
type ReqBlockInfo ¶
ReqBlockInfo request block info
type ReqTransList ¶
ReqTransList request transaction list
type ReqTransaction ¶
ReqTransaction request transaction data
type TransactionData ¶
TransactionData response transaction data
type TransactionInfo ¶
TransactionInfo transaction info
type TransactionList ¶
TransactionList response transaction list
Click to show internal directories.
Click to hide internal directories.