-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat(network): PropagateTransactionsTo implementation #4772
feat(network): PropagateTransactionsTo implementation #4772
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this,
I'd like to have this similar to:
reth/crates/net/network/src/transactions.rs
Lines 349 to 352 in 29a5201
/// Propagate the transaction hashes to the given peer | |
/// | |
/// Note: This will only send the hashes for transactions that exist in the pool. | |
fn propagate_hashes_to(&mut self, hashes: Vec<TxHash>, peer_id: PeerId) { |
as separate function
Hi, could you provide some more specifics on what this commit is missing that you are looking for? There is a new function |
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
21107f0
to
48bec70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome tysm for this, I just put some finishing touches on it
Codecov Report
... and 6 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
One of the requested implementations in #4691
Closes #4691
Unless I am wrong, the logic for both
propagate_transactions
andpropagate_transactions_to_peer
should be the same except for the number of peers propagated to. Therefore I moved the implementation to a separateperform_peer_propagation
function.Please let me know if this satisfies the requirement, and if I can continue on implementation for the other commands. I see that another user has implemented the
PropagateHashTo
command, I would like to implement the others if that has not been claimed.I would also appreciate any pointers to tests I should be looking at related to this function and other
TransactionCommand
s.