-
Notifications
You must be signed in to change notification settings - Fork 471
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
Txpool: Transaction Broadcasting Inefficiency #6052
Comments
End users submit transactions via REST endpoints on API nodes, not via gossip network directly. Relays have adaptive rate limiters to deal with "spam" being sent directly over the gossip. |
I agree that there is no issue if tx is submitted through RPC. In case of p2p network, there is an app rate limiter which can be bypassed by firing txns with app ids ranging from 1 to 2^64. But the issue is that, all the nodes in the network keep propagating the messages eventhough they are invalid. In simple words, I would modify my algorand node code to send invalid txns in p2p publishing. |
Transaction costs are so low on Algorand that it is easier to spam the network with valid TXNs - no code modifications needed. The current hub and spoke topology handles x100 spikes just fine. But P2P implementation is not yet complete so this is a good time for feedback. |
I have a question regarding the deduplication process for raw transaction groups. I noticed that a rotating salted cache is used instead of a digest cache. Could you please explain the reasoning behind this choice? Specifically, I am interested in understanding the advantages or considerations that led to the decision to use a rotating salted cache for this purpose. |
Hello @algorandskiy , I am tagging you here as you might be the right person to clear my doubt regarding the tx-related salted cache. |
There is a PR where the deduplication for wsnet handler was introduced: #4806 |
Thank you for bringing the pubsub issue to attention. It is indeed an problem and needs to be addressed. |
After reviewing the Algorand code, I noticed that transactions are broadcasted to other peers using a pub-sub mechanism without immediate validation. Wouldn’t this approach allow someone to send invalid transactions, leading to high bandwidth consumption?
The text was updated successfully, but these errors were encountered: