Kill the light client, CHTs and change tries. (#10080)

* Remove light client, change tries and CHTs

* Update tests

* fmt

* Restore changes_root

* Fixed benches

* Cargo fmt

* fmt

* fmt
This commit is contained in:
Arkadiy Paronyan
2021-11-12 14:15:01 +01:00
committed by GitHub
parent 112b7dac47
commit 4cbbf0cf43
141 changed files with 532 additions and 17807 deletions
@@ -152,12 +152,7 @@ where
.map_err(|e| format!("failed to decode output: {:?}", e))?;
let storage_changes = changes
.drain_storage_changes::<_, _, NumberFor<Block>>(
&state_ext.backend,
None,
Default::default(),
&mut Default::default(),
)
.drain_storage_changes(&state_ext.backend, Default::default(), &mut Default::default())
.unwrap();
state_ext.backend.apply_transaction(
storage_changes.transaction_storage_root,
@@ -680,9 +680,8 @@ pub(crate) fn state_machine_call<Block: BlockT, D: NativeExecutionDispatch + 'st
extensions: Extensions,
) -> sc_cli::Result<(OverlayedChanges, Vec<u8>)> {
let mut changes = Default::default();
let encoded_results = StateMachine::<_, _, NumberFor<Block>, _>::new(
let encoded_results = StateMachine::new(
&ext.backend,
None,
&mut changes,
executor,
method,