Skip to content

Commit 4aa5353

Browse files
authored
Merge pull request #2425 from CortexFoundation/dev
fix announcement drop logic
2 parents 43108bd + 5795143 commit 4aa5353

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)