From bd89003e43c95f93967ce748fe2e04febf953e49 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan <arkady.paronyan@gmail.com> Date: Wed, 20 Feb 2019 16:16:10 +0100 Subject: [PATCH] Fixed sending commit message (#1834) --- substrate/core/finality-grandpa/src/communication.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/core/finality-grandpa/src/communication.rs b/substrate/core/finality-grandpa/src/communication.rs index 18fbcbfeb46..4f6024fb95b 100644 --- a/substrate/core/finality-grandpa/src/communication.rs +++ b/substrate/core/finality-grandpa/src/communication.rs @@ -487,11 +487,11 @@ impl<Block: BlockT, N: Network<Block>> Sink for CommitsOut<Block, N> { auth_data }; - let message = FullCommitMessage::<Block> { + let message = GossipMessage::Commit(FullCommitMessage::<Block> { round: round, set_id: self.set_id, message: compact_commit, - }; + }); self.network.send_commit(round, self.set_id, Encode::encode(&message)); -- GitLab