mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 11:55:44 +08:00
Create a cargo workspace, add 'cargo testnet' alias
This commit is contained in:
2
.cargo/config
Normal file
2
.cargo/config
Normal file
@@ -0,0 +1,2 @@
|
||||
[alias]
|
||||
testnet = "run --package stacks-helium --"
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -58,7 +58,7 @@ testnet/index.html
|
||||
|
||||
# will have compiled files and executables
|
||||
/target/
|
||||
src/testnet/helium/target/
|
||||
/testnet/helium/target/
|
||||
|
||||
|
||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||
|
||||
@@ -78,3 +78,7 @@ developer-mode = []
|
||||
asm = ["sha2", "sha2-asm"]
|
||||
aarch64 = ["developer-mode", "sha2"]
|
||||
default = ["developer-mode", "asm"]
|
||||
|
||||
|
||||
[workspace]
|
||||
members = [".", "testnet/helium/"]
|
||||
|
||||
@@ -139,7 +139,7 @@ cargo run --bin blockstack-cli publish b8d99fd45da58038d630d9855d3ca2466e8e0f89d
|
||||
You can observe the state machine in action locally by running:
|
||||
|
||||
```bash
|
||||
cargo run --bin blockstack-core testnet ./Stacks.toml
|
||||
cargo testnet ./testnet/helium/Stacks.toml
|
||||
```
|
||||
|
||||
`Stacks.toml` is a configuration file that you can use for setting genesis balances or configuring Event observers.
|
||||
|
||||
@@ -8,7 +8,7 @@ edition = "2018"
|
||||
toml = "0.5.6"
|
||||
bitcoincore-rpc = "0.9.1"
|
||||
rand = "=0.7.2"
|
||||
stacks = { package = "blockstack-core", path = "../../../../blockstack-core" }
|
||||
stacks = { package = "blockstack-core", path = "../../../blockstack-core" }
|
||||
serde = "1"
|
||||
serde_derive = "1"
|
||||
serde_json = { version = "1.0", features = ["arbitrary_precision"] }
|
||||
@@ -4,7 +4,7 @@ rpc_bind = "127.0.0.1:9000"
|
||||
|
||||
[burnchain]
|
||||
chain = "bitcoin"
|
||||
network = "regtest" # "mock", "regtest"
|
||||
network = "mock" # "mock", "regtest"
|
||||
peer_host = "127.0.0.1"
|
||||
peer_port = 18444
|
||||
rpc_port = 18443
|
||||
Reference in New Issue
Block a user