Skip to content

Commit fc58320

Browse files
committed
eth/protocols/eth: fix announced tx size wrt type byte
1 parent bdf3dd1 commit fc58320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/protocols/eth/broadcast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (p *Peer) announceTransactions() {
152152
if tx := p.txpool.Get(queue[count]); tx != nil {
153153
pending = append(pending, queue[count])
154154
pendingTypes = append(pendingTypes, tx.Type())
155-
pendingSizes = append(pendingSizes, 1+uint32(tx.Size())) // txsize += 1 because of txtype byte
155+
pendingSizes = append(pendingSizes, uint32(tx.Size()))
156156
size += common.HashLength
157157
}
158158
}

0 commit comments

Comments
 (0)