grandpa: don't require justification of consensus changes on full node (#3540)

* grandpa: don't request justification for consensus changes on full node

* sync: finalize justification/finality proof requests in-order

* sync: ignore result of try_finalize_root on justification import
This commit is contained in:
André Silva
2019-09-09 06:28:35 +01:00
committed by Robert Habermeier
parent 9dc9e51063
commit ae8bc414ab
3 changed files with 4 additions and 9 deletions
@@ -497,6 +497,8 @@ impl<B, E, Block: BlockT<Hash=H256>, RA, PRA, SC> BlockImport<Block>
"Imported unjustified block #{} that enacts authority set change, waiting for finality for enactment.",
number,
);
imported_aux.needs_justification = true;
}
// we have imported block with consensus data changes, but without justification
@@ -504,8 +506,6 @@ impl<B, E, Block: BlockT<Hash=H256>, RA, PRA, SC> BlockImport<Block>
if enacts_consensus_change {
self.consensus_changes.lock().note_change((number, hash));
}
imported_aux.needs_justification = true;
}
}