-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tx weighting stage #21953
Add tx weighting stage #21953
Conversation
do top validators know this is coming? hopefully they’re running more than 1G NICs lol |
also this could make DOS worse without special forwarder software? not only can you screw with block propagation of current leader by stealing bandwidth from them, but also can forward my DOS packets through the highest staker to the current leader |
That high staker which is forwarding will QoS those packets and will prefer to send packets from other staked nodes first before it sends the unstaked DoS packets. |
2ada3c7
to
441e584
Compare
Why do you assume DoS packets will come from unstaked nodes? |
441e584
to
7c5461d
Compare
7c5461d
to
83da9d4
Compare
83da9d4
to
a01fb1a
Compare
Codecov Report
@@ Coverage Diff @@
## master #21953 +/- ##
=========================================
- Coverage 81.1% 81.1% -0.1%
=========================================
Files 555 556 +1
Lines 150664 150742 +78
=========================================
+ Hits 122300 122351 +51
- Misses 28364 28391 +27 |
How do tx first get into "the system" as most non-vote tx are first submitted to/via RPC nodes which have zero stake. Does this PR not create a scenario where votes push out tx from all other clients? And if there is a sequence of low-staked leaders that receive a burst of client transactions (as RPC forwards to upcoming leaders) they then receive low priority when forwarded (if not immediately included in a block). Perhaps there's more intelligence in the mechanism that would address these issues, would appreciate some clarity on this. (Question derived from discussion on Validator roundtable call on 20.01.2022) |
In short, no, votes will not push out low-staked non-vote transactions. |
Close this PR as it has been merged into #22958, reviews and comments should be made on combined PR. |
Problem
Transaction don't have the stake weight of the sender and to order them it would be nice to have.
Summary of Changes
Add a stage to add the stake weights after streamer and before sigverify.
Fixes #