-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(jstzd): spwan rollup in jstzd server #666
feat(jstzd): spwan rollup in jstzd server #666
Conversation
crates/jstzd/tests/jstzd_test.rs
Outdated
@@ -164,18 +280,12 @@ async fn read_bootstrap_contracts() -> Vec<BootstrapContract> { | |||
contracts | |||
} | |||
|
|||
async fn check_bootstrap_contracts(octez_client: &OctezClient) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can move this function back to this position from above so that there are fewer lines modified
crates/jstzd/tests/jstzd_test.rs
Outdated
rollup_parameters_ty: &Path, | ||
) -> ProtocolParameter { | ||
ProtocolParameterBuilder::new() | ||
// this is the activator account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment here needs to be updated
crates/jstzd/tests/jstzd_test.rs
Outdated
let baker_destroyed = retry(30, 1000, || async { | ||
Ok(!run_ps().await.contains("octez-baker")) | ||
}) | ||
.await; | ||
assert!(baker_destroyed); | ||
|
||
let rollup_destroyed = retry(30, 1000, || async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not always work. See #664.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will use the health check method for now and can use the approach later
use std::path::{Path, PathBuf}; | ||
use tezos_crypto_rs::hash::{BlockHash, OperationHash, SmartRollupHash}; | ||
use tokio::io::AsyncReadExt; | ||
|
||
pub const ACTIVATOR_SECRET_KEY: &str = | ||
"unencrypted:edsk31vznjHSSpGExDMHYASz45VZqXN4DPxvsa4hAyY8dHM28cZzp6"; | ||
pub const ROLLUP_ADDRESS: &str = "sr1PuFMgaRUN12rKQ3J2ae5psNtwCxPNmGNK"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the address need to change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, i've changed the toy rollup address in sandbox-params.json due to the conflict w JSTZ_ROLLUP_ADDRESS
ebde2de
to
cb07043
Compare
3dcf8bc
to
97468a0
Compare
97468a0
to
0c16731
Compare
closing for this |
Context
Spawn rollup in jstzd
Description
NOTE: it could be helpful to have a script that will generate the jstzd binaries in the future but for now we can just manually add them.
Manually testing the PR
integration test: