mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Fix incorrect transaction hash access in syncTransactions function
This commit is contained in:
parent
668118bfe1
commit
d4562a0181
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ func (h *handler) syncTransactions(p *eth.Peer) {
|
|||
var hashes []common.Hash
|
||||
for _, batch := range h.txpool.Pending(txpool.PendingFilter{OnlyPlainTxs: true}) {
|
||||
for _, tx := range batch {
|
||||
hashes = append(hashes, tx.Hash)
|
||||
hashes = append(hashes, tx.Hash())
|
||||
}
|
||||
}
|
||||
if len(hashes) == 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue