()
| 274 | } |
| 275 | |
| 276 | func NewBlockCachePacket() *BlockCachePacket { |
| 277 | p := new(BlockCachePacket) |
| 278 | p.Magic = CacheMagic |
| 279 | p.StartT = time.Now().UnixNano() |
| 280 | return p |
| 281 | } |
| 282 | |
| 283 | func (p *BlockCachePacket) String() string { |
| 284 | return fmt.Sprintf("OpMsg(%v)", p.GetOpMsg()) |