Fix incorrect transaction hash access in syncTransactions function

This commit is contained in:
Oğuzhan Oğuz 2025-03-18 14:24:15 +03:00 committed by GitHub
parent 668118bfe1
commit d4562a0181
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ func (h *handler) syncTransactions(p *eth.Peer) {
var hashes []common.Hash var hashes []common.Hash
for _, batch := range h.txpool.Pending(txpool.PendingFilter{OnlyPlainTxs: true}) { for _, batch := range h.txpool.Pending(txpool.PendingFilter{OnlyPlainTxs: true}) {
for _, tx := range batch { for _, tx := range batch {
hashes = append(hashes, tx.Hash) hashes = append(hashes, tx.Hash())
} }
} }
if len(hashes) == 0 { if len(hashes) == 0 {