We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43108bd + 5795143 commit 4aa5353Copy full SHA for 4aa5353
1 file changed
ctxc/fetcher/tx_fetcher.go
@@ -415,7 +415,7 @@ func (f *TxFetcher) loop() {
415
want := used + len(ann.hashes)
416
if want > maxTxAnnounces {
417
txAnnounceDOSMeter.Mark(int64(want - maxTxAnnounces))
418
- ann.hashes = ann.hashes[:want-maxTxAnnounces]
+ ann.hashes = ann.hashes[:maxTxAnnounces-used]
419
}
420
// All is well, schedule the remainder of the transactions
421
var (
0 commit comments