-
Notifications
You must be signed in to change notification settings - Fork 2.6k
BEEFY subscription fires multiple times for the same commitment #10684
BEEFY subscription fires multiple times for the same commitment #10684
Conversation
… david/beefy-subscribe-justification-rpc
… david/beefy-subscribe-justification-rpc
… david/beefy-subscribe-justification-rpc
… david/beefy-subscribe-justification-rpc
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.
The code looks good in terms of making sure that RPC subscription doesn't forward duplicate (or old) commitments.
It's not clear why there are duplicate commitments to begin with... should we at least log something when seeing these duplicate commitments so we can further investigate?
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.
The issue mentions to find out why commitments are send twice and not to just prevent sending them multiple times from the rpc layer.
…Wizdave97/substrate into david/beefy-subscribe-justification-rpc
Because of the way networking works, peers could still be broadcasting votes for a round that has already concluded. The best we can do is dedupe the notifications sent to the rpc clients. |
9334637
to
d0846ed
Compare
… david/beefy-subscribe-justification-rpc
…Wizdave97/substrate into david/beefy-subscribe-justification-rpc
… david/beefy-subscribe-justification-rpc
@@ -365,7 +365,7 @@ mod tests { | |||
); | |||
} | |||
|
|||
fn create_commitment(block_number: u32) -> BeefySignedCommitment<Block> { | |||
fn create_commitment(block_number: u64) -> BeefySignedCommitment<Block> { |
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.
block numbers are actually u32
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.
The susbtrate-test-runtime
uses a u64
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump |
Fixed in #10882 |
Fixes paritytech/grandpa-bridge-gadget#159