Skip to content

Commit 929401f

Browse files
committed
eth/protocols: add nil check for tx before calling GetOptions
1 parent c2389ad commit 929401f

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
@@ -158,7 +158,7 @@ func (p *Peer) announceTransactions() {
158158
meta := p.txpool.GetMetadata(queue[count])
159159
// BOR specific - DO NOT REMOVE
160160
// Skip PIP-15 bundled transactions
161-
if meta != nil && tx.GetOptions() == nil {
161+
if tx != nil && meta != nil && tx.GetOptions() == nil {
162162
pending = append(pending, queue[count])
163163
pendingTypes = append(pendingTypes, meta.Type)
164164
pendingSizes = append(pendingSizes, uint32(meta.Size))

0 commit comments

Comments
 (0)