-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add Subscription RPC for Grandpa Finality #5732
Changes from 1 commit
2f5367f
9d369ac
0095b78
7719292
8c35b1e
07ef5fa
c9aa9e2
78250b7
fe31500
ba13ee6
fe360b9
254bebe
9c996ea
8090161
1150e5d
130a871
f42b6c3
d61d7ec
56e716b
c0c6508
1bc9103
30e3831
8b0850a
cf07f2f
ab64ecb
b1c04ba
ebad4d7
caaaa61
f3cc272
3c4505a
9a225ac
a85dd53
1b0344f
12dd5df
bca6a13
efaa0d1
9632988
964f1e3
82004cb
e526f95
6c71b8f
8bfb560
be7cb78
ac81cdf
3f8630d
3b387e6
bf4b19a
4c96b73
12158a2
e2584e5
dc3c888
410af1f
fb3ad63
5d80399
3f33fd2
57f1963
90ae56e
be1df4f
d4cddf3
8bd9e5c
127c19e
f43ee9b
39640c1
f3c6c54
44ba73e
01f7d73
3f3b136
908cf15
bb9ad4b
410ddea
ca126fd
452024f
8b0cf76
7ddffef
817b425
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ use sp_consensus::SelectChain; | |
| use crate::authorities::{AuthoritySet, SharedAuthoritySet}; | ||
| use crate::communication::Network as NetworkT; | ||
| use crate::consensus_changes::SharedConsensusChanges; | ||
| use crate::notification::{GrandpaJustificationSender, JustificationNotification}; | ||
| use crate::notification::GrandpaJustificationSender; | ||
| use crate::justification::GrandpaJustification; | ||
| use crate::until_imported::UntilVoteTargetImported; | ||
| use crate::voting_rule::VotingRule; | ||
|
|
@@ -1185,10 +1185,7 @@ pub(crate) fn finalize_block<BE, Block, Client>( | |
| if let Some(justification) = justification.clone() { | ||
| match client.header(BlockId::Hash(hash)) { | ||
| Ok(Some(header)) => { | ||
| let notification = JustificationNotification { | ||
| header, | ||
| justification, | ||
| }; | ||
| let notification = (header, justification); | ||
| if let Some(sender) = justification_sender { | ||
|
||
| let _ = sender.notify(notification); | ||
|
||
| } | ||
|
|
||
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 above needs to be changed, otherwise we only get the encoded blob of the justification here.