(tx *types.Transaction, height uint32)
| 360 | } |
| 361 | |
| 362 | func (this *BlockStore) putTransaction(tx *types.Transaction, height uint32) { |
| 363 | txHash := tx.Hash() |
| 364 | key := this.getTransactionKey(txHash) |
| 365 | value := common.NewZeroCopySink(nil) |
| 366 | value.WriteUint32(height) |
| 367 | tx.Serialization(value) |
| 368 | this.store.BatchPut(key, value.Bytes()) |
| 369 | } |
| 370 | |
| 371 | //GetTransaction return transaction by transaction hash |
| 372 | func (this *BlockStore) GetTransaction(txHash common.Uint256) (*types.Transaction, uint32, error) { |
no test coverage detected