Skip to content

Commit 08c4b9d

Browse files
authored
Update configs (#2652)
* chore: update sample/example stacks-node configs and some docs * chore: update configs * docs: update README * docs: update mainnet-follower-conf bitcoin properties
1 parent 67dccdf commit 08c4b9d

16 files changed

+126
-171
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ cargo run --bin blockstack-cli generate-sk --testnet
129129
# stacksAddress: "ST2ZRX0K27GW0SP3GJCEMHD95TQGJMKB7G9Y0X1MH"
130130
# }
131131
```
132-
This keypair is already registered in the `Stacks.toml` file, so it can be used as presented here.
132+
This keypair is already registered in the `testnet-follower-conf.toml` file, so it can be used as presented here.
133133

134134
We will interact with the following simple contract `kv-store`. In our examples, we will assume this contract is saved to `./kv-store.clar`:
135135

@@ -178,10 +178,10 @@ cargo run --bin blockstack-cli publish b8d99fd45da58038d630d9855d3ca2466e8e0f89d
178178
You can observe the state machine in action locally by running:
179179

180180
```bash
181-
cargo testnet start --config=./testnet/stacks-node/Stacks.toml
181+
cargo testnet start --config=./testnet/stacks-node/conf/testnet-follower-conf.toml
182182
```
183183

184-
`Stacks.toml` is a configuration file that you can use for setting genesis balances or configuring Event observers. You can grant an address an initial account balance by adding the following entries:
184+
`testnet-follower-conf.toml` is a configuration file that you can use for setting genesis balances or configuring Event observers. You can grant an address an initial account balance by adding the following entries:
185185

186186
```
187187
[[ustx_balance]]

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ simulating a miner.
720720
StacksChainState::open(false, 0x80000000, old_chainstate_path).unwrap();
721721
let old_sortition_db = SortitionDB::open(old_sort_path, true).unwrap();
722722

723-
// initial argon balances -- see testnet/stacks-node/conf/argon-follower-conf.toml
723+
// initial argon balances -- see testnet/stacks-node/conf/testnet-follower-conf.toml
724724
let initial_balances = vec![
725725
(
726726
StacksAddress::from_string("STB44HYPYAT2BB2QE513NSP81HTMYWBJP02HPGK6")

testnet/stacks-node/conf/argon-follower-conf.toml

Lines changed: 0 additions & 35 deletions
This file was deleted.

testnet/stacks-node/conf/local-follower-conf.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@
22
rpc_bind = "127.0.0.1:30443"
33
p2p_bind = "127.0.0.1:30444"
44
bootstrap_node = "04ee0b1602eb18fef7986887a7e8769a30c9df981d33c8380d255edef003abdcd243a0eb74afdf6740e6c423e62aec631519a24cf5b1d62bf8a3e06ddc695dcb77@127.0.0.1:20444"
5-
miner = false
65
pox_sync_sample_secs = 10
6+
wait_time_for_microblocks = 0
77

88
[burnchain]
99
chain = "bitcoin"
1010
mode = "krypton"
1111
peer_host = "127.0.0.1"
12-
rpc_port = 28443
12+
rpc_port = 18443
1313
peer_port = 18444
14-
poll_time_secs = 5
14+
15+
# Used for sending events to a local stacks-blockchain-api service
16+
# [[events_observer]]
17+
# endpoint = "localhost:3700"
18+
# retry_count = 255
19+
# events_keys = ["*"]
1520

1621
[[ustx_balance]]
1722
# Private key: b8d99fd45da58038d630d9855d3ca2466e8e0f89d3894c4724f0efc9ff4b51f001
@@ -133,7 +138,3 @@ amount = 100000000000000
133138
# Private key: b4dc4945b57c9649ae2ef51aba46ad24f1ec45721969b096a4a9eabfff5e58df01
134139
address = "ST289WH00WPBAG852K4FRCBNFV7HQ76SZKBHQZ427"
135140
amount = 100000000000000
136-
137-
# [[events_observer]]
138-
# endpoint = "http://127.0.0.1:8080"
139-
# events_keys = ["*"]

testnet/stacks-node/conf/local-leader-conf.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ p2p_bind = "127.0.0.1:20444"
44
seed = "0000000000000000000000000000000000000000000000000000000000000000"
55
local_peer_seed = "0000000000000000000000000000000000000000000000000000000000000000"
66
miner = true
7-
mine_microblocks = false
87
prometheus_bind = "127.0.0.1:4000"
98
pox_sync_sample_secs = 10
109
wait_time_for_microblocks = 0
@@ -13,9 +12,8 @@ wait_time_for_microblocks = 0
1312
chain = "bitcoin"
1413
mode = "krypton"
1514
peer_host = "127.0.0.1"
16-
rpc_port = 28443
15+
rpc_port = 18443
1716
peer_port = 18444
18-
poll_time_secs = 5
1917

2018
[[ustx_balance]]
2119
# Private key: b8d99fd45da58038d630d9855d3ca2466e8e0f89d3894c4724f0efc9ff4b51f001
@@ -137,8 +135,3 @@ amount = 100000000000000
137135
# Private key: b4dc4945b57c9649ae2ef51aba46ad24f1ec45721969b096a4a9eabfff5e58df01
138136
address = "ST289WH00WPBAG852K4FRCBNFV7HQ76SZKBHQZ427"
139137
amount = 100000000000000
140-
141-
142-
# [[events_observer]]
143-
# endpoint = "http://127.0.0.1:8080"
144-
# events_keys = ["*"]

testnet/stacks-node/conf/local-second-miner.toml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[node]
2+
# working_dir = "/dir/to/save/chainstate"
3+
rpc_bind = "0.0.0.0:20443"
4+
p2p_bind = "0.0.0.0:20444"
5+
bootstrap_node = "02da7a464ac770ae8337a343670778b93410f2f3fef6bea98dd1c3e9224459d36b@seed-0.mainnet.stacks.co:20444,02afeae522aab5f8c99a00ddf75fbcb4a641e052dd48836408d9cf437344b63516@seed-1.mainnet.stacks.co:20444,03652212ea76be0ed4cd83a25c06e57819993029a7b9999f7d63c36340b34a4e62@seed-2.mainnet.stacks.co:20444"
6+
7+
[burnchain]
8+
chain = "bitcoin"
9+
mode = "mainnet"
10+
peer_host = "bitcoind.stacks.co"
11+
username = "blockstack"
12+
password = "blockstacksystem"
13+
rpc_port = 8332
14+
peer_port = 8333
15+
16+
# Used for sending events to a local stacks-blockchain-api service
17+
# [[events_observer]]
18+
# endpoint = "localhost:3700"
19+
# retry_count = 255
20+
# events_keys = ["*"]

testnet/stacks-node/conf/mainnet-miner-conf.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[node]
2+
# working_dir = "/dir/to/save/chainstate"
23
rpc_bind = "0.0.0.0:20443"
34
p2p_bind = "0.0.0.0:20444"
45
seed = "<YOUR_SEED>"
@@ -10,9 +11,9 @@ bootstrap_node = "02da7a464ac770ae8337a343670778b93410f2f3fef6bea98dd1c3e9224459
1011
chain = "bitcoin"
1112
mode = "mainnet"
1213
peer_host = "127.0.0.1"
13-
rpc_port = 8332
14-
peer_port = 8333
1514
username = "<USERNAME>"
1615
password = "<PASSWORD>"
16+
rpc_port = 8332
17+
peer_port = 8333
1718
satoshis_per_byte = 100
1819
burn_fee_cap = 20000
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[node]
2+
# working_dir = "/dir/to/save/chainstate"
3+
rpc_bind = "0.0.0.0:20443"
4+
p2p_bind = "0.0.0.0:20444"
5+
bootstrap_node = "04ee0b1602eb18fef7986887a7e8769a30c9df981d33c8380d255edef003abdcd243a0eb74afdf6740e6c423e62aec631519a24cf5b1d62bf8a3e06ddc695dcb77@127.0.0.1:20444"
6+
wait_time_for_microblocks = 10000
7+
use_test_genesis_chainstate = true
8+
9+
[burnchain]
10+
chain = "bitcoin"
11+
mode = "mocknet"
12+
13+
# Used for sending events to a local stacks-blockchain-api service
14+
# [[events_observer]]
15+
# endpoint = "localhost:3700"
16+
# retry_count = 255
17+
# events_keys = ["*"]
18+
19+
[[ustx_balance]]
20+
address = "ST3EQ88S02BXXD0T5ZVT3KW947CRMQ1C6DMQY8H19"
21+
amount = 100000000000000
22+
23+
[[ustx_balance]]
24+
address = "ST3KCNDSWZSFZCC6BE4VA9AXWXC9KEB16FBTRK36T"
25+
amount = 100000000000000
26+
27+
[[ustx_balance]]
28+
address = "STB2BWB0K5XZGS3FXVTG3TKS46CQVV66NAK3YVN8"
29+
amount = 100000000000000
30+
31+
[[ustx_balance]]
32+
address = "STSTW15D618BSZQB85R058DS46THH86YQQY6XCB7"
33+
amount = 100000000000000
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[node]
2+
# working_dir = "/dir/to/save/chainstate"
3+
rpc_bind = "0.0.0.0:20443"
4+
p2p_bind = "0.0.0.0:20444"
5+
seed = "0000000000000000000000000000000000000000000000000000000000000000"
6+
local_peer_seed = "0000000000000000000000000000000000000000000000000000000000000000"
7+
miner = true
8+
wait_time_for_microblocks = 10000
9+
use_test_genesis_chainstate = true
10+
11+
[burnchain]
12+
chain = "bitcoin"
13+
mode = "mocknet"
14+
15+
[[ustx_balance]]
16+
address = "ST3EQ88S02BXXD0T5ZVT3KW947CRMQ1C6DMQY8H19"
17+
amount = 100000000000000
18+
19+
[[ustx_balance]]
20+
address = "ST3KCNDSWZSFZCC6BE4VA9AXWXC9KEB16FBTRK36T"
21+
amount = 100000000000000
22+
23+
[[ustx_balance]]
24+
address = "STB2BWB0K5XZGS3FXVTG3TKS46CQVV66NAK3YVN8"
25+
amount = 100000000000000
26+
27+
[[ustx_balance]]
28+
address = "STSTW15D618BSZQB85R058DS46THH86YQQY6XCB7"
29+
amount = 100000000000000

0 commit comments

Comments
 (0)