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

Struct BlockInfo

p2pserver/block_sync.go:220–224  ·  view source on GitHub ↗

BlockInfo is used for saving block information in cache

Source from the content-addressed store, hash-verified

218
219//BlockInfo is used for saving block information in cache
220type BlockInfo struct {
221 nodeID uint64
222 block *types.Block
223 merkleRoot common.Uint256
224}
225
226//BlockSyncMgr is the manager class to deal with block sync
227type BlockSyncMgr struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected