tx_hash_cache_broken (#2432)

This commit is contained in:
Alex Sharov 2021-07-23 19:16:58 +07:00 committed by GitHub
parent 0c5f3df8a0
commit 1a4d9a0f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -580,7 +580,7 @@ func (tx *AccessListTx) FakeSign(address common.Address) (Transaction, error) {
}
// Hash computes the hash (but not for signatures!)
func (tx AccessListTx) Hash() common.Hash {
func (tx *AccessListTx) Hash() common.Hash {
if hash := tx.hash.Load(); hash != nil {
return *hash.(*common.Hash)
}

View File

@ -484,7 +484,7 @@ func (tx DynamicFeeTransaction) AsMessage(s Signer, baseFee *big.Int) (Message,
}
// Hash computes the hash (but not for signatures!)
func (tx DynamicFeeTransaction) Hash() common.Hash {
func (tx *DynamicFeeTransaction) Hash() common.Hash {
if hash := tx.hash.Load(); hash != nil {
return *hash.(*common.Hash)
}

View File

@ -468,7 +468,7 @@ func (tx *LegacyTx) FakeSign(address common.Address) (Transaction, error) {
}
// Hash computes the hash (but not for signatures!)
func (tx LegacyTx) Hash() common.Hash {
func (tx *LegacyTx) Hash() common.Hash {
if hash := tx.hash.Load(); hash != nil {
return *hash.(*common.Hash)
}