Make genesis state locally-available on light client (#1622)

* make genesis state available on light client

* RemoteOrLocalCallExecutor

* code_is_executed_locally_or_remotely

* OnDemandOrGenesisState tests

* some comments
This commit is contained in:
Svyatoslav Nikolsky
2019-02-01 12:27:54 +03:00
committed by Gav Wood
parent 5d82cf243e
commit 381cf26f55
8 changed files with 510 additions and 79 deletions
+4 -1
View File
@@ -177,4 +177,7 @@ pub trait RemoteBackend<Block, H>: Backend<Block, H>
where
Block: BlockT,
H: Hasher<Out=Block::Hash>,
{}
{
/// Returns true if the state for given block is available locally.
fn is_local_state_available(&self, block: &BlockId<Block>) -> bool;
}