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:
Marcio Diaz
2019-04-24 13:09:51 +02:00
committed by Gavin Wood
parent 382caca947
commit 4dfd9a9b7d
@@ -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
if commit.target_number < last_finalized_number {
if commit.target_number <= last_finalized_number {
return future::ok(last_finalized_number);
}