Hash hashes the RLP encoding of tx. It uniquely identifies the transaction.
()
| 317 | // Hash hashes the RLP encoding of tx. |
| 318 | // It uniquely identifies the transaction. |
| 319 | func (tx *TransactionOld) Hash() common.Hash { |
| 320 | if hash := tx.hash.Load(); hash != nil { |
| 321 | return hash.(common.Hash) |
| 322 | } |
| 323 | v := rlpHash(tx) |
| 324 | tx.hash.Store(v) |
| 325 | return v |
| 326 | } |
| 327 | |
| 328 | // Size returns the true RLP encoded storage size of the transaction, either by |
| 329 | // encoding and returning it, or returning a previsouly cached value. |