Create a cargo workspace, add 'cargo testnet' alias

This commit is contained in:
Ludo Galabru
2020-04-07 17:52:23 -04:00
parent cbe20289dd
commit 85f724d47f
20 changed files with 10 additions and 4 deletions

2
.cargo/config Normal file
View File

@@ -0,0 +1,2 @@
[alias]
testnet = "run --package stacks-helium --"

2
.gitignore vendored
View File

@@ -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

View File

@@ -78,3 +78,7 @@ developer-mode = []
asm = ["sha2", "sha2-asm"]
aarch64 = ["developer-mode", "sha2"]
default = ["developer-mode", "asm"]
[workspace]
members = [".", "testnet/helium/"]

View File

@@ -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.

View File

@@ -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"] }

View File

@@ -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