mirror of
https://github.com/fluencelabs/aquavm
synced 2025-06-26 05:01:32 +00:00
WIP
This commit is contained in:
@ -92,11 +92,11 @@ pub enum PreparationError {
|
|||||||
DataSignatureCheckError(#[from] DataVerifierError),
|
DataSignatureCheckError(#[from] DataVerifierError),
|
||||||
|
|
||||||
/// AIR script size is bigger than the allowed limit.
|
/// AIR script size is bigger than the allowed limit.
|
||||||
#[error("air size: {0} bytes is bigger than a limit allowed: {1} bytes")]
|
#[error("air size: {0} bytes is bigger than the limit allowed: {1} bytes")]
|
||||||
AIRSizeLimitReached(usize, u64),
|
AIRSizeLimitReached(usize, u64),
|
||||||
|
|
||||||
/// Current_data particle size is bigger than the allowed limit.
|
/// Current_data particle size is bigger than the allowed limit.
|
||||||
#[error("Current_data particle size: {0} bytes is bigger than a limit allowed: {1} bytes")]
|
#[error("Current_data particle size: {0} bytes is bigger than the limit allowed: {1} bytes")]
|
||||||
ParticleSizeLimitReached(usize, u64),
|
ParticleSizeLimitReached(usize, u64),
|
||||||
|
|
||||||
/// CallResult size is bigger than the allowed limit.
|
/// CallResult size is bigger than the allowed limit.
|
||||||
|
@ -152,7 +152,7 @@ fn make_exec_ctx(
|
|||||||
"CallResultsRepr.deserialize",
|
"CallResultsRepr.deserialize",
|
||||||
);
|
);
|
||||||
|
|
||||||
// This is a part of argument size limit check where we check the size of every call results.
|
// This is a part of argument size limit check where we check the size of every call result.
|
||||||
if call_results
|
if call_results
|
||||||
.values()
|
.values()
|
||||||
.any(|call_result| call_result.result.len() > run_parameters.call_result_size_limit as usize)
|
.any(|call_result| call_result.result.len() > run_parameters.call_result_size_limit as usize)
|
||||||
|
@ -146,7 +146,6 @@ impl AirRunner for ReleaseWasmAirRunner {
|
|||||||
keypair: &KeyPair,
|
keypair: &KeyPair,
|
||||||
particle_id: String,
|
particle_id: String,
|
||||||
) -> Result<RawAVMOutcome, Box<dyn std::error::Error>> {
|
) -> Result<RawAVMOutcome, Box<dyn std::error::Error>> {
|
||||||
println!("running release wasm runner#####");
|
|
||||||
let current_peer_id =
|
let current_peer_id =
|
||||||
override_current_peer_id.unwrap_or_else(|| self.current_peer_id.clone());
|
override_current_peer_id.unwrap_or_else(|| self.current_peer_id.clone());
|
||||||
|
|
||||||
|
@ -148,8 +148,7 @@ pub struct Network<R = DefaultAirRunner> {
|
|||||||
// extencive test code changes
|
// extencive test code changes
|
||||||
impl Network<DefaultAirRunner> {
|
impl Network<DefaultAirRunner> {
|
||||||
pub fn empty() -> Rc<Self> {
|
pub fn empty() -> Rc<Self> {
|
||||||
let test_init_parameters = TestInitParameters::default();
|
Self::new(std::iter::empty::<PeerId>(), vec![], <_>::default())
|
||||||
Self::new(std::iter::empty::<PeerId>(), vec![], test_init_parameters)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user