Skip to content

Commit

Permalink
Merge branch 'main' into testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
damip committed Dec 2, 2022
2 parents 5237f66 + 9e20432 commit 964b8ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions massa-bootstrap/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,15 @@ async fn stream_final_state_and_consensus(
};
panic!("Bootstrap failed, try to bootstrap again.");
}
BootstrapServerMessage::BootstrapError { error } => {
return Err(std::io::Error::new(std::io::ErrorKind::InvalidData, error).into())
}
_ => {
return Err(
std::io::Error::new(std::io::ErrorKind::TimedOut, "bad message").into(),
return Err(std::io::Error::new(
std::io::ErrorKind::InvalidData,
"unexpected message",
)
.into())
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion massa-models/src/config/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub const MAX_DEFERRED_CREDITS_LENGTH: u64 = 10_000;
/// Maximum size of executed ops
pub const MAX_EXECUTED_OPS_LENGTH: u64 = 1_000;
/// Maximum size of executed ops changes
pub const MAX_EXECUTED_OPS_CHANGES_LENGTH: u64 = 1_000;
pub const MAX_EXECUTED_OPS_CHANGES_LENGTH: u64 = 20_000;
/// Maximum length of a datastore key
pub const MAX_DATASTORE_KEY_LENGTH: u8 = 255;
/// Maximum length of an operation datastore key
Expand Down

0 comments on commit 964b8ff

Please sign in to comment.