Versions in this module Expand all Collapse all v1 v1.1.0 Nov 15, 2018 v1.0.0 Nov 15, 2018 Changes in this version + const ChanSize + const FindConnStatusInterval + const Getheightreq + const Getheightrsp + const Getmainnodereq + const Getmainnodersp + const Getpingreq + const Getpongrsp + const MinLiveBootCount + const Module + const P2PBootCode + const TimeOutLimit + func GetIPFromID(ID string) string + func SendData(ReadySend []p2p.Custsend) + type Boots struct + BootReturn REboot + ChanPing chan LocalPongInfo + HandleMessage map[int]func(p2p.Custsend) + LocalID string + MyRecvChan chan p2p.Custsend + NeedAck []uint64 + PublicSeq uint64 + func New(bc *core.BlockChain, nodeID string) *Boots + func (TBoot *Boots) CheckIPStatusAndCount(ListID []string) (int, []string) + func (TBoot *Boots) DeleteIndex(index uint64) int + func (TBoot *Boots) FindOneBootNode(ListID []string) bool + func (TBoot *Boots) GetPingPong(ListIDString []string) []LocalPongInfo + func (TBoot *Boots) HandleGetPingPongReq(AnalyData p2p.Custsend) + func (TBoot *Boots) HandleGetPingPongRsp(AnalyData p2p.Custsend) + func (TBoot *Boots) HandleP2PMessage() + func (TBoot *Boots) IsBootNode(AimID string) (bool, []string) + func (TBoot *Boots) MakeSendMsg(fromip string, toip string, istcp bool, code uint64, Type uint64) p2p.Custsend + func (TBoot *Boots) ReadRecvChanfromP2P() + func (TBoot *Boots) Run() + type GetHeightReq struct + type GetHeightRsp struct + BlockHeight uint64 + type GetMainNodeReq struct + type GetMainNodeRsp struct + type GetPingReq struct + type GetPingRsp struct + Msg uint64 + type LocalHeightInfo struct + IP string + Len uint64 + type LocalMainNodeList struct + IP string + type LocalPongInfo struct + IP string + type REboot struct + Height uint64 + NetFlag int