max peer blockheight handler
(ctx actor.Context, req *GetMaxPeerBlockHeightReq)
| 147 | |
| 148 | //max peer blockheight handler |
| 149 | func (this *P2PActor) handleGetMaxPeerBlockHeightReq(ctx actor.Context, req *GetMaxPeerBlockHeightReq) { |
| 150 | height := this.server.GetMaxPeerBlockHeight() |
| 151 | if ctx.Sender() != nil { |
| 152 | resp := &GetMaxPeerBlockHeightRsp{ |
| 153 | MaxPeerBlockHeight: height, |
| 154 | } |
| 155 | ctx.Sender().Request(resp, ctx.Self()) |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | //get id handler |
| 160 | func (this *P2PActor) handleGetIDReq(ctx actor.Context, req *GetIdReq) { |
no test coverage detected