mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
tx_hash_cache_broken (#2432)
This commit is contained in:
parent
0c5f3df8a0
commit
1a4d9a0f35
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user