Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
fix logging related panic when a blob tx isn't broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-bayardo committed Jan 26, 2023
1 parent f4d93c2 commit 2090fc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion txpool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1545,10 +1545,11 @@ func MainLoop(ctx context.Context, db kv.RwDB, coreDB kv.RoDB, p *TxPool, newTxs

// first broadcast all local txs to all peers, then non-local to random sqrt(peersAmount) peers
txSentTo := send.BroadcastPooledTxs(localTxRlps)
log.Info("local txs sent to peers", "peers", txSentTo)
hashSentTo := send.AnnouncePooledTxs(localTxHashes)
for i := 0; i < localTxHashes.Len(); i++ {
hash := localTxHashes.At(i)
log.Info("local tx propagated", "tx_hash", hex.EncodeToString(hash), "announced to peers", hashSentTo[i], "broadcast to peers", txSentTo[i], "baseFee", p.pendingBaseFee.Load())
log.Info("local tx propagated", "tx_hash", hex.EncodeToString(hash), "announced to peers", hashSentTo[i], "baseFee", p.pendingBaseFee.Load())
}
send.BroadcastPooledTxs(remoteTxRlps)
send.AnnouncePooledTxs(remoteTxHashes)
Expand Down

0 comments on commit 2090fc9

Please sign in to comment.