Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions txsubmission.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ func (n *Node) txsubmissionClientRequestTxIds(
// Get available TXs
var tmpTxs []*mempool.MempoolTransaction
for {
// nolint:staticcheck
// The linter wants to move this up into the loop condition, but it's more readable this way
if len(tmpTxs) >= int(req) {
break
}
if blocking && len(tmpTxs) == 0 {
// Wait until we see a TX
tmpTx := consumer.NextTx(true)
Expand Down
Loading