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

Function NewBlockCache

p2pserver/block_sync.go:259–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257}
258
259func NewBlockCache() *BlockCache {
260 return &BlockCache{
261 emptyBlockAmount: 0,
262 blocksCache: make(map[uint32]*BlockInfo, 0),
263 }
264}
265
266func (this *BlockCache) addBlock(nodeID uint64, block *types.Block,
267 merkleRoot common.Uint256) bool {

Callers 1

NewBlockSyncMgrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected