Skip to content

Commit 5795143

Browse files
committed
fix announcement drop logic
1 parent 8217b0e commit 5795143

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ctxc/fetcher/tx_fetcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ func (f *TxFetcher) loop() {
415415
want := used + len(ann.hashes)
416416
if want > maxTxAnnounces {
417417
txAnnounceDOSMeter.Mark(int64(want - maxTxAnnounces))
418-
ann.hashes = ann.hashes[:want-maxTxAnnounces]
418+
ann.hashes = ann.hashes[:maxTxAnnounces-used]
419419
}
420420
// All is well, schedule the remainder of the transactions
421421
var (

0 commit comments

Comments
 (0)