Skip to content

Commit

Permalink
fix: hyperchain tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludo Galabru committed Jun 21, 2022
1 parent 3fc8ac2 commit 369c9da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions components/clarinet-files/src/network_manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ pub const DEFAULT_STACKS_NODE_IMAGE: &str = "quay.io/hirosystems/stacks-node:dev
pub const DEFAULT_BITCOIN_EXPLORER_IMAGE: &str = "quay.io/hirosystems/bitcoin-explorer:devnet";
pub const DEFAULT_STACKS_API_IMAGE: &str = "blockstack/stacks-blockchain-api:latest";
pub const DEFAULT_STACKS_EXPLORER_IMAGE: &str = "hirosystems/explorer:latest";
pub const DEFAULT_HYPERCHAINS_IMAGE: &str = "quay.io/hirosystems/stacks-hyperchains:devnet-v1";
pub const DEFAULT_POSTGRES_IMAGE: &str = "postgres:alpine";
pub const DEFAULT_HYPERCHAINS_IMAGE: &str = "hirosystems/hyperchains:103-merge-stretch";
pub const DEFAULT_HYPERCHAIN_CONTRACT_ID: &str =
"STFTX3F4XCY7RS5VRHXP2SED0WC0YRKNWTNXD74P.hc-alpha";
"ST3A7S7GFKR8E3TVZ41Z2N441265CKXS0QPZ94N6B.hc-alpha-2";

#[derive(Serialize, Deserialize, Debug)]
pub struct NetworkManifestFile {
Expand Down Expand Up @@ -497,8 +497,8 @@ impl NetworkManifest {
hyperchain_leader_mnemonic,
hyperchain_leader_secret_key_hex,
hyperchain_leader_derivation_path,
hyperchain_node_p2p_port: devnet_config.stacks_node_p2p_port.unwrap_or(30443),
hyperchain_node_rpc_port: devnet_config.stacks_node_rpc_port.unwrap_or(30444),
hyperchain_node_p2p_port: devnet_config.stacks_node_p2p_port.unwrap_or(30444),
hyperchain_node_rpc_port: devnet_config.stacks_node_rpc_port.unwrap_or(30443),
hyperchain_events_ingestion_port,
hyperchain_node_events_observers: devnet_config
.hyperchain_node_events_observers
Expand Down
8 changes: 4 additions & 4 deletions src/generate/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,16 +371,16 @@ disable_stacks_api = false
# postgres_database = "postgres"
# bitcoin_node_image_url = "quay.io/hirosystems/bitcoind:devnet-v2"
# stacks_node_image_url = "localhost:5000/stacks-node:devnet-v2"
# stacks_api_image_url = "blockstack/stacks-blockchain-api:latest"
# stacks_explorer_image_url = "blockstack/explorer:latest"
# stacks_api_image_url = "hirosystems/stacks-blockchain-api:latest"
# stacks_explorer_image_url = "hirosystems/explorer:latest"
# bitcoin_explorer_image_url = "quay.io/hirosystems/bitcoin-explorer:devnet"
# postgres_image_url = "postgres:alpine"
# enable_hyperchain_node = true
# hyperchain_image_url = "hyrosystems/explorer:latest"
# hyperchain_image_url = "hirosystems/hyperchains:103-merge-stretch"
# hyperchain_leader_mnemonic = "twice kind fence tip hidden tilt action fragile skin nothing glory cousin green tomorrow spring wrist shed math olympic multiply hip blue scout claw"
# hyperchain_leader_derivation_path = "m/44'/5757'/0'/0/0"
# hyperchain_node_p2p_port = 30444
# hyperchain_node_rpc_port = 30443
# hyperchain_node_p2p_port = 30444
# hyperchain_events_ingestion_port = 30445
# hyperchain_node_events_observers = ["host.docker.internal:8002"]
Expand Down
3 changes: 2 additions & 1 deletion src/integrate/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,7 @@ working_dir = "/devnet"
rpc_bind = "0.0.0.0:{hyperchain_node_rpc_port}"
p2p_bind = "0.0.0.0:{hyperchain_node_p2p_port}"
miner = true
seed = "{hyperchain_leader_secret_key_hex}"
mining_key = "{hyperchain_leader_secret_key_hex}"
local_peer_seed = "{hyperchain_leader_secret_key_hex}"
wait_time_for_microblocks = 50_000
Expand All @@ -1164,7 +1165,7 @@ subsequent_attempt_time_ms = 10000
chain = "stacks_layer_1"
mode = "hyperchain"
first_burn_header_height = {first_burn_header_height}
peer_host = "0.0.0.0"
peer_host = "host.docker.internal"
rpc_port = {stacks_node_rpc_port}
peer_port = {stacks_node_p2p_port}
contract_identifier = "{hyperchain_contract_id}"
Expand Down

0 comments on commit 369c9da

Please sign in to comment.