Skip to content
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

prevent gossip of invalid txs #595

Closed
Tracked by #479
Voxelot opened this issue Sep 7, 2022 · 1 comment · Fixed by #936
Closed
Tracked by #479

prevent gossip of invalid txs #595

Voxelot opened this issue Sep 7, 2022 · 1 comment · Fixed by #936
Assignees

Comments

@Voxelot
Copy link
Member

Voxelot commented Sep 7, 2022

When a node encounters an invalid tx, it shouldn't propagate to the rest of the network.

@Voxelot
Copy link
Member Author

Voxelot commented Jan 5, 2023

utilize notify_gossip_transaction_validity

@leviathanbeak leviathanbeak self-assigned this Jan 24, 2023
Voxelot added a commit that referenced this issue Jan 26, 2023
Closes #595 

For gossipsub messages, we need to validate **all** the messages.
Messages will not be propagated unless a _timely_ validation is
reported.

I have updated the gossipsub tests, now instead of just checking that
Node A sends a gossipsub message to Node B,
we also check that Node C gets the propagated message from Node B.
Of course if the validation is positive, if the message is rejected Node
C should not receive it.

Co-authored-by: Green Baneling <XgreenX9999@gmail.com>
Co-authored-by: Voxelot <brandonkite92@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants