Method
constructBlockFetchRespMsg
(blkNum uint32, blk *Block, blkHash common.Uint256)
Source from the content-addressed store, hash-verified
| 373 | } |
| 374 | |
| 375 | func (self *Server) constructBlockFetchRespMsg(blkNum uint32, blk *Block, blkHash common.Uint256) *BlockFetchRespMsg { |
| 376 | return &BlockFetchRespMsg{ |
| 377 | BlockNumber: blkNum, |
| 378 | BlockHash: blkHash, |
| 379 | BlockData: blk, |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | func (self *Server) constructBlockInfoFetchMsg(startBlkNum uint32) *BlockInfoFetchMsg { |
| 384 | return &BlockInfoFetchMsg{ |
Tested by
no test coverage detected