mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 08:45:41 +00:00
grandpa: fix race condition (#3542)
* grandpa: ignore result of voter command send * grandpa: avoid race condition on environment::finalize_block
This commit is contained in:
@@ -590,9 +590,8 @@ where
|
||||
info!(target: "finality", "Imported justification for block #{} that triggers \
|
||||
command {}, signaling voter.", number, command);
|
||||
|
||||
if let Err(e) = self.send_voter_commands.unbounded_send(command) {
|
||||
return Err(ConsensusError::ClientImport(e.to_string()).into());
|
||||
}
|
||||
// send the command to the voter
|
||||
let _ = self.send_voter_commands.unbounded_send(command);
|
||||
},
|
||||
Err(CommandOrError::Error(e)) => {
|
||||
return Err(match e {
|
||||
|
||||
Reference in New Issue
Block a user