Repository navigation
Fix dBFT invalid transaction cache capacity and lifecycle - #1127
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master-n3 #1127 +/- ##
=============================================
+ Coverage 54.23% 54.26% +0.03%
=============================================
Files 299 299
Lines 17999 18005 +6
Branches 2366 2366
=============================================
+ Hits 9762 9771 +9
+ Misses 7607 7602 -5
- Partials 630 632 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@superboyiii could you review it please? |
|
This needs to be solved. It brings a new issue. The other two changes are correct. Mempool removals are now posted to the consensus actor, so the cache and its inner HashSet are updated only on the actor thread. PostStop unsubscribes from NewTransaction and TransactionRemoved, so a restarted actor does not stack duplicate handlers. |
|
@superboyiii Thanks for catching this. I removed |
|
Need update neo to v3.11.3 |
Increase the invalid transaction cache capacity by 65,535 entries to accommodate a full ChangeView message alongside existing mempool rejection entries.
Keep rejected transactions cached across blocks and view changes. Process mempool removals through the consensus actor to avoid concurrent cache mutations, and unsubscribe from mempool events when the actor stops.
The existing ChangeView message format and hash limit remain unchanged. The additional capacity mitigates single-message eviction but does not prevent saturation by repeated messages.