Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolved conflicts
  • Loading branch information
joepetrowski committed Jan 22, 2019
commit fdb4263d3478230d56514ecb2af88254e2e69e7b
38 changes: 1 addition & 37 deletions core/client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -739,49 +739,13 @@ impl<B, E, Block, RA> Client<B, E, Block, RA> where
},
None,
)?;
//let (_, storage_update, changes_update) = r?;

overlay.commit_prospective();

Ok((Some(storage_update), Some(changes_update), Some(overlay.into_committed().collect())))
},
None => Ok((None, None, None))
}

// match transaction.state()? {
// Some(transaction_state) => {
// let mut overlay = Default::default();

// let (_, storage_update, changes_update) = self.executor.call_at_state(
// transaction_state,
// &mut overlay,
// "Core_execute_block",
// &<Block as BlockT>::new(import_headers.pre().clone(), body.unwrap_or_default()).encode(),
// match (origin, self.block_execution_strategy) {
// (BlockOrigin::NetworkInitialSync, _) | (_, ExecutionStrategy::NativeWhenPossible) =>
// ExecutionManager::NativeWhenPossible,
// (_, ExecutionStrategy::AlwaysWasm) => ExecutionManager::AlwaysWasm,
// _ => ExecutionManager::Both(|wasm_result, native_result| {
// let header = import_headers.post();
// warn!("Consensus error between wasm and native block execution at block {}", hash);
// warn!(" Header {:?}", header);
// warn!(" Native result {:?}", native_result);
// warn!(" Wasm result {:?}", wasm_result);
// telemetry!("block.execute.consensus_failure";
// "hash" => ?hash,
// "origin" => ?origin,
// "header" => ?header
// );
// wasm_result
// }),
// },
// )?;
// overlay.commit_prospective();

// Ok((Some(storage_update), Some(changes_update), Some(overlay.into_committed().collect())))
// },

// None => Ok((None, None, None))
// }
}

/// Finalizes all blocks up to given. If a justification is provided it is
Expand Down
2 changes: 2 additions & 0 deletions core/test-runtime/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
2 changes: 2 additions & 0 deletions node/runtime/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.