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

Struct BlockCache

p2pserver/block_sync.go:254–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254type BlockCache struct {
255 emptyBlockAmount int
256 blocksCache map[uint32]*BlockInfo //Map BlockHeight => BlockInfo, using for cache the blocks receive from net, and waiting for commit to ledger
257}
258
259func NewBlockCache() *BlockCache {
260 return &BlockCache{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected