newNonCacheBlockNode returns a block node without the *types.BPBlock cached.
(h uint32, b *types.BPBlock, p *blockNode)
| 55 | |
| 56 | // newNonCacheBlockNode returns a block node without the *types.BPBlock cached. |
| 57 | func newNonCacheBlockNode(h uint32, b *types.BPBlock, p *blockNode) (node *blockNode) { |
| 58 | node = newBlockNode(h, b, p) |
| 59 | node.clear() |
| 60 | return |
| 61 | } |
| 62 | |
| 63 | func (n *blockNode) load() *types.BPBlock { |
| 64 | return n.block.Load().(*types.BPBlock) |
no test coverage detected