| 252 | } |
| 253 | |
| 254 | type 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 | |
| 259 | func NewBlockCache() *BlockCache { |
| 260 | return &BlockCache{ |
nothing calls this directly
no outgoing calls
no test coverage detected