feat(verification): Limit the number of conflicts in mempool#1436
feat(verification): Limit the number of conflicts in mempool#1436
Conversation
80aa164 to
72e0f0c
Compare
| count += 1 | ||
|
|
||
| if count > MAX_CONFLICTS_MEMPOOL: | ||
| raise TooManyConflicts |
There was a problem hiding this comment.
From what I understood from the acceptance criteria was that if the mempool has 8 transactions with conflicts (or maybe 8 conflicts in total if counting the individual conflicts each transaction has), a transaction that would increase that count would not be accepted.
This implementation seems to count whether a single transaction has more than 8 conflicts with transactions in the mempool, and if that's the case transaction would not be accepted into the mempool.
Is that correct? Both of those restrictions make sense, but the latter would allow 100 transactions with conflicts in the mempool, as long as individually each tx has at most 8 conflicts.
There was a problem hiding this comment.
Nice. The ambiguity happened to suggest another restriction that makes sense. I'll add this new restriction in this PR. Thanks!
There was a problem hiding this comment.
Done! Can you review it again, please?
|
| Branch | feat/mempool-too-many-conflicts |
| Testbed | ubuntu-22.04 |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | minutes (m) |
|---|---|---|
| sync-v2 (up to 20000 blocks) | 📈 view plot | 1.98 m |
efbeba6 to
9db613c
Compare
9db613c to
b9b9bc9
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1436 +/- ##
==========================================
- Coverage 85.88% 85.86% -0.02%
==========================================
Files 431 431
Lines 33274 33287 +13
Branches 5215 5218 +3
==========================================
+ Hits 28576 28581 +5
- Misses 3660 3665 +5
- Partials 1038 1041 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Acceptance Criteria
Checklist
master, confirm this code is production-ready and can be included in future releases as soon as it gets merged