BEEFY subscription fires multiple times for the same commitment#10684
BEEFY subscription fires multiple times for the same commitment#10684Wizdave97 wants to merge 26 commits intoparitytech:masterfrom
Conversation
… david/beefy-subscribe-justification-rpc
… david/beefy-subscribe-justification-rpc
… david/beefy-subscribe-justification-rpc
… david/beefy-subscribe-justification-rpc
acatangiu
left a comment
There was a problem hiding this comment.
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?
bkchr
left a comment
There was a problem hiding this comment.
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
| } | ||
|
|
||
| fn create_commitment(block_number: u32) -> BeefySignedCommitment<Block> { | ||
| fn create_commitment(block_number: u64) -> BeefySignedCommitment<Block> { |
There was a problem hiding this comment.
block numbers are actually u32
There was a problem hiding this comment.
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