mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
GetMetadata can return nil
This commit is contained in:
parent
f8763cbf49
commit
909d38901d
1 changed files with 23 additions and 22 deletions
|
|
@ -477,8 +477,8 @@ func (h *handler) BroadcastTransactions(txs []common.Hash) {
|
|||
)
|
||||
|
||||
for _, tx := range txs {
|
||||
if meta := h.txpool.GetMetadata(tx); meta != nil {
|
||||
var directSet map[*ethPeer]struct{}
|
||||
meta := h.txpool.GetMetadata(tx)
|
||||
switch {
|
||||
case meta.Type == types.BlobTxType:
|
||||
blobTxs++
|
||||
|
|
@ -503,6 +503,7 @@ func (h *handler) BroadcastTransactions(txs []common.Hash) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for peer, hashes := range txset {
|
||||
directCount += len(hashes)
|
||||
|
|
|
|||
Loading…
Reference in a new issue