Skip to content

Commit 9f0f11d

Browse files
authored
Merge pull request #21 from wileyj/chore/rename
Rename to hacknet
2 parents 2d37278 + 7be7f36 commit 9f0f11d

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# List of binaries devnet needs to function properly
1+
# List of binaries hacknet needs to function properly
22
COMMANDS := sudo tar zstd getent stress
33
$(foreach bin,$(COMMANDS),\
44
$(if $(shell command -v $(bin) 2> /dev/null),$(info),$(error Missing required dependency: `$(bin)`)))
@@ -18,7 +18,7 @@ export GID := $(shell getent passwd $$(whoami) | cut -d":" -f 4)
1818
EPOCH := $(shell date +%s)
1919
PWD = $(shell pwd)
2020
# Set a unique project name (used for checking if the network is running)
21-
PROJECT ?= devnet
21+
PROJECT ?= hacknet
2222
CHAINSTATE_ARCHIVE ?= $(PWD)/docker/chainstate.tar.zstd
2323
export CHAINSTATE_DIR ?= $(PWD)/docker/chainstate/$(EPOCH)
2424
export DOCKER_NETWORK ?= stacks
@@ -202,7 +202,7 @@ stress:
202202

203203
# Run the liveness script to verify the services are all loaded and operating as expected
204204
test:
205-
./docker/tests/devnet-liveness.sh
205+
./docker/tests/hacknet-liveness.sh
206206

207207
# Run the chain monitor script (loops and curls /v2/info, parsing the output to show current heights of miners)
208208
monitor:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Devnet
1+
# Hacknet
22
- Configured for 3 stacks miners and signers
33
- bind-mounts a local filesystem for data persistence
44
- Uses a chainstate archive to boot the network quickly
@@ -129,7 +129,7 @@ ex:
129129
CHAINSTATE_ARCHIVE=./docker/chainstate_new.tar.zstd make up
130130
```
131131

132-
#### Force stop the devnet network
132+
#### Force stop the hacknet network
133133
If the network is in a "stuck" state where the Makefile targets are not stopping the services (i.e. the `.current-chainstate-dir` file was removed while network was running), `down-force` may be used to force stop the network.
134134

135135
```sh

docker/bitcoin/bitcoin.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ rest=1
2323
rpcbind=0.0.0.0:18443
2424
rpcallowip=0.0.0.0/0
2525
rpcallowip=::/0
26-
rpcuser=devnet
27-
rpcpassword=devnet
26+
rpcuser=hacknet
27+
rpcpassword=hacknet
2828
bind=0.0.0.0:18444
2929

3030
# [debug]

docker/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ x-common-vars:
6262
# Bitcoin env vars
6363
- &BITCOIN_PEER_PORT 18444
6464
- &BITCOIN_RPC_PORT 18443
65-
- &BITCOIN_RPC_USER devnet
66-
- &BITCOIN_RPC_PASS devnet
65+
- &BITCOIN_RPC_USER hacknet
66+
- &BITCOIN_RPC_PASS hacknet
6767
- &MINE_INTERVAL ${MINE_INTERVAL:-2} # time in seconds to wait to mine a block in epoch 2.0
6868
- &MINE_INTERVAL_EPOCH25 ${MINE_INTERVAL_EPOCH25:-1} # time in seconds to wait to mine a block in epoch 2.5
6969
- &MINE_INTERVAL_EPOCH3 ${MINE_INTERVAL_EPOCH3:-30} # time in seconds to wait to mine a block in epoch 3.0
@@ -167,7 +167,7 @@ x-stacks-signer: &stacks-signer
167167
profiles:
168168
- default
169169

170-
name: devnet
170+
name: hacknet
171171

172172
# Services.
173173
# ------------------------------------------------------------------------------

docker/stacks/stacks-follower.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# stacks-node devnet follower confifg
1+
# stacks-node hacknet follower confifg
22
[node]
33
name = "$MINER_NAME"
44
rpc_bind = "0.0.0.0:20443"

docker/stacks/stacks-miner_signer.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# stacks-node devnet miner config
1+
# stacks-node hacknet miner config
22
# event observers:
33
# - stacks-signer
44
[node]

docker/stacks/stacks-signer.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# stacks-signer devnet config
1+
# stacks-signer hacknet config
22
stacks_private_key = "$SIGNER_PRIVATE_KEY"
33
node_host = "$STACKS_NODE_HOST"
44
endpoint = "$STACKS_SIGNER_ENDPOINT"

docker/tests/devnet-liveness.sh renamed to docker/tests/hacknet-liveness.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ echo -e " -----------------------------------------------"
44
echo -e "| => (1) 🔬 TEST: [CHECK BITCOIN NODE IS LIVE] |"
55
echo -e " -----------------------------------------------"
66

7-
CHECK_BTC_LIVENESS_RESULT=$(curl -s -u "devnet:devnet" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockcount", "params": []}' -H 'content-type: text/plain;' "http://localhost:18443/" | jq)
7+
CHECK_BTC_LIVENESS_RESULT=$(curl -s -u "hacknet:hacknet" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockcount", "params": []}' -H 'content-type: text/plain;' "http://localhost:18443/" | jq)
88

99
echo -e "\nGET BLOCKCOUNT RPC:"
1010
echo -e $CHECK_BTC_LIVENESS_RESULT | jq
@@ -22,7 +22,7 @@ echo -e " ------------------------------------------------------"
2222

2323
echo -e "\nMINE 1 BLOCK RPC:"
2424
MINER_ADDRESS="mqVnk6NPRdhntvfm4hh9vvjiRkFDUuSYsH"
25-
CHECK_IF_BTC_MINEABLE_RESULT=$(curl -s -u "devnet:devnet" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "generatetoaddress", "params": [1, "'$MINER_ADDRESS'"]}' -H 'content-type: text/plain;' "http://localhost:18443/" | jq)
25+
CHECK_IF_BTC_MINEABLE_RESULT=$(curl -s -u "hacknet:hacknet" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "generatetoaddress", "params": [1, "'$MINER_ADDRESS'"]}' -H 'content-type: text/plain;' "http://localhost:18443/" | jq)
2626

2727
echo -e $CHECK_IF_BTC_MINEABLE_RESULT | jq
2828

0 commit comments

Comments
 (0)