mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 07:37:57 +00:00
Optimize offchain worker memory usage a bit. (#11454)
* add missing events to elections fallback * Merged * add some logs and stuff * undo a bunch of things * undo lock file * remove unused err * fix build
This commit is contained in:
@@ -142,6 +142,11 @@ where
|
||||
.overwrite_online_at(parent_hash.to_owned());
|
||||
|
||||
let builder = if command.overwrite_wasm_code {
|
||||
log::info!(
|
||||
target: LOG_TARGET,
|
||||
"replacing the in-storage :code: with the local code from {}'s chain_spec (your local repo)",
|
||||
config.chain_spec.name(),
|
||||
);
|
||||
let (code_key, code) = extract_code(&config.chain_spec)?;
|
||||
builder.inject_hashed_key_value(&[(code_key, code)])
|
||||
} else {
|
||||
|
||||
@@ -131,6 +131,11 @@ where
|
||||
let builder = command.state.builder::<Block>()?;
|
||||
|
||||
let builder = if command.overwrite_wasm_code {
|
||||
log::info!(
|
||||
target: LOG_TARGET,
|
||||
"replacing the in-storage :code: with the local code from {}'s chain_spec (your local repo)",
|
||||
config.chain_spec.name(),
|
||||
);
|
||||
let (code_key, code) = extract_code(&config.chain_spec)?;
|
||||
builder.inject_hashed_key_value(&[(code_key, code)])
|
||||
} else {
|
||||
|
||||
@@ -722,7 +722,7 @@ pub(crate) fn state_machine_call<Block: BlockT, D: NativeExecutionDispatch + 'st
|
||||
sp_core::testing::TaskExecutor::new(),
|
||||
)
|
||||
.execute(execution.into())
|
||||
.map_err(|e| format!("failed to execute 'TryRuntime_on_runtime_upgrade': {}", e))
|
||||
.map_err(|e| format!("failed to execute '{}': {}", method, e))
|
||||
.map_err::<sc_cli::Error, _>(Into::into)?;
|
||||
|
||||
Ok((changes, encoded_results))
|
||||
|
||||
Reference in New Issue
Block a user