mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +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 {
|
for _, tx := range txs {
|
||||||
|
if meta := h.txpool.GetMetadata(tx); meta != nil {
|
||||||
var directSet map[*ethPeer]struct{}
|
var directSet map[*ethPeer]struct{}
|
||||||
meta := h.txpool.GetMetadata(tx)
|
|
||||||
switch {
|
switch {
|
||||||
case meta.Type == types.BlobTxType:
|
case meta.Type == types.BlobTxType:
|
||||||
blobTxs++
|
blobTxs++
|
||||||
|
|
@ -503,6 +503,7 @@ func (h *handler) BroadcastTransactions(txs []common.Hash) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for peer, hashes := range txset {
|
for peer, hashes := range txset {
|
||||||
directCount += len(hashes)
|
directCount += len(hashes)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue