From 4dfd9a9b7d5d063a1e2b7aaf2c98acdc8b0d398b Mon Sep 17 00:00:00 2001 From: Marcio Diaz Date: Wed, 24 Apr 2019 13:09:51 +0200 Subject: [PATCH] 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 --- substrate/core/finality-grandpa/src/observer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/core/finality-grandpa/src/observer.rs b/substrate/core/finality-grandpa/src/observer.rs index 74b5076dae..cce68a64d4 100644 --- a/substrate/core/finality-grandpa/src/observer.rs +++ b/substrate/core/finality-grandpa/src/observer.rs @@ -90,9 +90,9 @@ fn grandpa_observer, 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); }