MCPcopy Create free account
hub / github.com/DNAProject/DNA / constructBlockFetchRespMsg

Method constructBlockFetchRespMsg

consensus/vbft/msg_builder.go:375–381  ·  view source on GitHub ↗
(blkNum uint32, blk *Block, blkHash common.Uint256)

Source from the content-addressed store, hash-verified

373}
374
375func (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
383func (self *Server) constructBlockInfoFetchMsg(startBlkNum uint32) *BlockInfoFetchMsg {
384 return &BlockInfoFetchMsg{

Callers 1

onConsensusMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected