AddTransaction add transaction to block cache
(tx *types.Transaction, height uint32)
| 84 | |
| 85 | //AddTransaction add transaction to block cache |
| 86 | func (this *BlockCache) AddTransaction(tx *types.Transaction, height uint32) { |
| 87 | txHash := tx.Hash() |
| 88 | this.transactionCache.Add(string(txHash.ToArray()), &TransactionCacheaValue{ |
| 89 | Tx: tx, |
| 90 | Height: height, |
| 91 | }) |
| 92 | } |
| 93 | |
| 94 | //GetTransaction return transaction by transaction hash from cache |
| 95 | func (this *BlockCache) GetTransaction(txHash common.Uint256) (*types.Transaction, uint32) { |
no test coverage detected