Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RendezvousString = "pok" ProtocolID = "/chain/1.1.0" ListenHost = "0.0.0.0" ListenPort = "3001" )
p2p相关,程序启动时,会被配置文件所替换
View Source
var TradePoolLength = 2
交易池默认大小
Functions ¶
Types ¶
type Send ¶
type Send struct { }
func (Send) SendTransToPeers ¶
func (s Send) SendTransToPeers(ts []block.Transaction)
向网络中其他节点发送交易信息
func (Send) SendVersionToPeers ¶
向网络中其他节点发送高度信息
type Transaction ¶
type Transactions ¶
type Transactions struct {
Ts []Transaction
}
func (*Transactions) Deserialize ¶
func (v *Transactions) Deserialize(d []byte)
func (*Transactions) Serialize ¶
func (t *Transactions) Serialize() []byte
Click to show internal directories.
Click to hide internal directories.