(hash common.Uint256)
| 135 | } |
| 136 | |
| 137 | func (self *Store) GetTransactionBytes(hash common.Uint256) ([]byte, error) { |
| 138 | key := GenDataTransactionKey(hash) |
| 139 | defer keyPool.Put(key) |
| 140 | txn, err := self.db.Get(key.Bytes()) |
| 141 | |
| 142 | return txn, err |
| 143 | } |
| 144 | |
| 145 | func (self *Store) GetTransaction(hash common.Uint256) (*types.Transaction, error) { |
| 146 | buf, err := self.GetTransactionBytes(hash) |
no test coverage detected