Skip to content

Commit

Permalink
fix: local network script shouldn't ever go to public gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez committed Feb 13, 2025
1 parent 48bb06c commit fc87271
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 81 deletions.
80 changes: 3 additions & 77 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ tracing-subscriber = "0.3"
wasmer = "5.0.4"
wasmer-compiler-singlepass = "5.0.4"

# freenet-stdlib = { path = "./stdlib/rust/", features = ["unstable"] }
freenet-stdlib = { version = "0.1.0-rc1" }
freenet-stdlib = { path = "./stdlib/rust/", features = ["unstable"] }
# freenet-stdlib = { version = "0.1.0-rc1" }

[profile.dev.package."*"]
opt-level = 3
Expand Down
4 changes: 2 additions & 2 deletions crates/fdev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ reqwest = { version = "0.12", features = ["json"] }
http = "1.2"

# internal
# freenet = { path = "../core", features = ["local-simulation"]}
freenet = { version = "0.1.0-rc1", features = ["local-simulation"]}
freenet = { path = "../core", features = ["local-simulation"]}
# freenet = { version = "0.1.0-rc1", features = ["local-simulation"]}
freenet-stdlib = { workspace = true }

[features]
Expand Down
2 changes: 2 additions & 0 deletions scripts/local-network.mk
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ start-gateways: generate-gw-config
ws_port=$$(( $(WS_BASE_PORT) + $$i )); \
if [ -f "$(LOGS_DIR)/gw$$i.log" ]; then : > "$(LOGS_DIR)/gw$$i.log"; fi; \
($(ENV_VARS) freenet network \
--skip-load-from-network \
--is-gateway \
--ws-api-port $$ws_port \
--public-network-address 127.0.0.1 \
Expand All @@ -121,6 +122,7 @@ start-nodes:
public_port=$$(( $(WS_BASE_PORT) + $(N_NODES) + $$i )); \
if [ -f "$(LOGS_DIR)/n$$i.log" ]; then : > $(LOGS_DIR)/n$$i.log; fi; \
($(ENV_VARS) freenet network \
--skip-load-from-network \
--config-dir $(BASE_DIR) \
--ws-api-port $$ws_port \
--public-network-port $$public_port \
Expand Down

0 comments on commit fc87271

Please sign in to comment.