Optimize tree route to sync faster (#3665)

* Introduce HeaderMetadata and use it for tree_route. Add lowest_common_ancestor.
* Add tests.
This commit is contained in:
Marcio Diaz authored and GitHub committed 2019-10-02 20:30:43 +02:00
1 parent 8646cd158e
commit f6bd58ac1f
22 files changed
+677 -280

No files matched your search

@@ -78,7 +78,7 @@ pub type LightExecutor = client::light::call_executor::GenesisCallExecutor<
client::LocalCallExecutor<
client::light::backend::Backend<
client_db::light::LightStorage<runtime::Block>,
Blake2Hasher
Blake2Hasher,
>,
NativeExecutor<LocalExecutor>
>