WASM contracts MVP (#5679)
* lifetime issues * refactor to new 'native env' * descriptors and such * wasm mvp continued * finalized env/ext bindings * descriptor -> call_args * inject gas counter * result processing and engine activation * tabify some source files * needs return new * wasm tests initial * erradicate warnings * origin in the descriptor * update test repo * payload verification tests * identity return payload test * some test description * dispersion test * check length here * suicidal contract * engine params * fix typo * review fixes * submodule update * update - purge reserved space * doc effort * more review fixes * fix error message * fix dependency url * reorg error handling * update submodule * update utils * update to latest parity-wasm * tabify * fix wasm magic header * update dependencies * external create and tests * update to latest tests * extra trace info * Update parity-wasm * update wasm-utils also * few traces and result handle change * alter trace content * fix issues with optimizer, update to latest parity with validator, etc * static initialization * license preamble * update wasm crates and gas costs * fix grumbles * bring back lifetime * fix compilation
This commit is contained in:
@@ -80,9 +80,11 @@ pub struct CommonParams {
|
||||
/// Number of first block where dust cleanup rules (EIP-168 and EIP169) begin.
|
||||
pub dust_protection_transition: BlockNumber,
|
||||
/// Nonce cap increase per block. Nonce cap is only checked if dust protection is enabled.
|
||||
pub nonce_cap_increment : u64,
|
||||
pub nonce_cap_increment: u64,
|
||||
/// Enable dust cleanup for contracts.
|
||||
pub remove_dust_contracts : bool,
|
||||
pub remove_dust_contracts: bool,
|
||||
/// Wasm support
|
||||
pub wasm: bool,
|
||||
}
|
||||
|
||||
impl From<ethjson::spec::Params> for CommonParams {
|
||||
@@ -110,6 +112,7 @@ impl From<ethjson::spec::Params> for CommonParams {
|
||||
dust_protection_transition: p.dust_protection_transition.map_or(BlockNumber::max_value(), Into::into),
|
||||
nonce_cap_increment: p.nonce_cap_increment.map_or(64, Into::into),
|
||||
remove_dust_contracts: p.remove_dust_contracts.unwrap_or(false),
|
||||
wasm: p.wasm.unwrap_or(false),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user