Skip to content

Commit

Permalink
Return if txHashes is undefined (#3156)
Browse files Browse the repository at this point in the history
  • Loading branch information
scorbajio authored Nov 13, 2023
1 parent 5f02395 commit 3b257e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/service/txpool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ export class TxPool {
* @param peerPool Reference to the peer pool
*/
async handleAnnouncedTxHashes(txHashes: Uint8Array[], peer: Peer, peerPool: PeerPool) {
if (!this.running || txHashes.length === 0) return
if (!this.running || txHashes === undefined || txHashes.length === 0) return
this.addToKnownByPeer(txHashes, peer)

const reqHashes = []
Expand Down

0 comments on commit 3b257e9

Please sign in to comment.