mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
Fix grandpa observer and maybe some test timeouts (#2359)
* fix: grandpa observer and maybe test timeouts * Update core/finality-grandpa/src/observer.rs Co-Authored-By: gavofyork <github@gavwood.com>
This commit is contained in:
@@ -90,9 +90,9 @@ fn grandpa_observer<B, E, Block: BlockT<Hash=H256>, RA, S>(
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// if the commit we've received targets a block lower than the last
|
// if the commit we've received targets a block lower or equal to the last
|
||||||
// finalized, ignore it and continue with the current state
|
// finalized, ignore it and continue with the current state
|
||||||
if commit.target_number < last_finalized_number {
|
if commit.target_number <= last_finalized_number {
|
||||||
return future::ok(last_finalized_number);
|
return future::ok(last_finalized_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user