mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Update to the latest substrate
This commit is contained in:
@@ -102,7 +102,7 @@ impl<T: TendermintValidator> TendermintAuthority<T> {
|
|||||||
&mut self
|
&mut self
|
||||||
.import
|
.import
|
||||||
.client
|
.client
|
||||||
.justifications(&BlockId::Hash(info.finalized_hash))
|
.justifications(info.finalized_hash)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.map(|justifications| justifications.get(CONSENSUS_ID).cloned().unwrap())
|
.map(|justifications| justifications.get(CONSENSUS_ID).cloned().unwrap())
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
@@ -350,7 +350,7 @@ impl<T: TendermintValidator> Network for TendermintAuthority<T> {
|
|||||||
self
|
self
|
||||||
.import
|
.import
|
||||||
.client
|
.client
|
||||||
.finalize_block(BlockId::Hash(hash), Some(justification), true)
|
.finalize_block(hash, Some(justification), true)
|
||||||
.map_err(|_| Error::InvalidJustification)
|
.map_err(|_| Error::InvalidJustification)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ impl<T: TendermintValidator> TendermintImport<T> {
|
|||||||
// This can be triggered if the validators add a block, without justifications, yet the p2p
|
// This can be triggered if the validators add a block, without justifications, yet the p2p
|
||||||
// process then broadcasts it with its justifications
|
// process then broadcasts it with its justifications
|
||||||
if (self.client.status(id).unwrap() == BlockStatus::InChain) &&
|
if (self.client.status(id).unwrap() == BlockStatus::InChain) &&
|
||||||
self.client.justifications(&id).unwrap().is_some()
|
self.client.justifications(hash).unwrap().is_some()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user