ContainBlock return whether block is in cache
(blockHash common.Uint256)
| 79 | |
| 80 | //ContainBlock return whether block is in cache |
| 81 | func (this *BlockCache) ContainBlock(blockHash common.Uint256) bool { |
| 82 | return this.blockCache.Contains(string(blockHash.ToArray())) |
| 83 | } |
| 84 | |
| 85 | //AddTransaction add transaction to block cache |
| 86 | func (this *BlockCache) AddTransaction(tx *types.Transaction, height uint32) { |
no test coverage detected