Skip to content

Commit

Permalink
fixed nakamoto signer, stacks, stacks-explorer Docker build files
Browse files Browse the repository at this point in the history
  • Loading branch information
SundarGowtham committed May 6, 2024
1 parent 332dd14 commit 9a13cd1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ sudo bash -c cat <<EOF> ./config.toml
# The IP address and port where your Stacks node can be accessed.
# The port 20443 is the default RPC endpoint for Stacks nodes.
# Note that you must use an IP address - DNS hosts are not supported at this time.
node_host = "127.0.0.1:20443"
node_host = "$STACKS_NODE_RPC_HOST:$STACKS_NODE_RPC_PORT"
# This is the location where the signer will expose an RPC endpoint for
# receiving events from your Stacks node.
endpoint = "$SINGER_ENDPOINT"
endpoint = "$SIGNER_ENDPOINT"
# Either “testnet” or “mainnet”
network = "testnet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ COPY --from=build /app/.next/static /app/.next/static
COPY --from=build /app/.next/standalone /app

EXPOSE 3020
EXPOSE 3000
CMD [ "node", "server.js" ]
34 changes: 14 additions & 20 deletions devenv/LOCAL/[1]-CUSTOM-DOCKER-BUILDS/stacks/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ set +x

# If the miner key is not passed into the process, then we default to not running a Stacks miner
if [[ -z "${MINER_KEY}" ]]; then
# In the case where we don't see any miney key being passed in, we don't include the `[miner]`section
# In the case where we don't see any miner key being passed in, we don't include the `[miner]`section
sudo bash -c "cat <<EOF> ./config.toml
[node]
rpc_bind = "0.0.0.0:20443"
p2p_bind = "0.0.0.0:20444"
local_peer_seed = "$LOCAL_PEER_SEED" # Change to any 64-character hexidecimal string
bootstrap_node = "02fa2ee45aa9aebd3707b43a09e13571bbdc216e48232091dcdd805012cfffdb8b@seed.nakamoto.testnet.hiro.so:40444"
prometheus_bind = "0.0.0.0:9153"
working_dir = "$STACKS_WORKING_DIR" # Change to data directory you would like to use for your node
wait_time_for_microblocks = 0
Expand Down Expand Up @@ -219,12 +218,12 @@ else
rpc_bind = "0.0.0.0:20443"
p2p_bind = "0.0.0.0:20444"
local_peer_seed = "$LOCAL_PEER_SEED" # Change to any 64-character hexidecimal string
bootstrap_node = "02fa2ee45aa9aebd3707b43a09e13571bbdc216e48232091dcdd805012cfffdb8b@seed.nakamoto.testnet.hiro.so:40444"
prometheus_bind = "0.0.0.0:9153"
working_dir = "$STACKS_WORKING_DIR" # Change to data directory you would like to use for your node
wait_time_for_microblocks = 0
mine_microblocks = false
stacker = true # required if you are running a signer
miner = true
[miner]
min_tx_fee = 1
Expand All @@ -239,64 +238,59 @@ else
block_proposal_token = "$MY_HTTP_AUTH_TOKEN"
[[events_observer]]
endpoint = "$SINGER_ENDPOINT" # change to your signer endpoint
endpoint = "$SIGNER_ENDPOINT" # change to your signer endpoint
retry_count = 255
include_data_events = false
events_keys = ["stackerdb", "block_proposal"]
[burnchain]
chain = "bitcoin"
mode = "xenon"
magic_bytes = "N3"
mode = "krypton"
magic_bytes = "T3"
pox_prepare_length = 5
pox_reward_length = 20
peer_host = "bitcoind.testnet.stacks.co"
username = "blockstack"
password = "blockstacksystem"
burnchain_op_tx_fee = 5500
commit_anchor_block_within = 300000
rpc_port = 18332
peer_port = 18333
satoshis_per_byte = 20
first_burn_block_height = 2583232
first_burn_block_timestamp = 1711238511
first_burn_block_hash = "000000000000db6864215e5f52067f6418884560a205cb990d13acc350743aaf"
pox_2_activation = 104
[[burnchain.epochs]]
epoch_name = "1.0"
start_height = 0
[[burnchain.epochs]]
epoch_name = "2.0"
start_height = 2583232
start_height = 0
[[burnchain.epochs]]
epoch_name = "2.05"
start_height = 2583245
start_height = 102
[[burnchain.epochs]]
epoch_name = "2.1"
start_height = 2583246
start_height = 103
[[burnchain.epochs]]
epoch_name = "2.2"
start_height = 2583247
start_height = 105
[[burnchain.epochs]]
epoch_name = "2.3"
start_height = 2583248
start_height = 106
[[burnchain.epochs]]
epoch_name = "2.4"
start_height = 2583249
start_height = 107
[[burnchain.epochs]]
epoch_name = "2.5"
start_height = 2583250
start_height = 108
[[burnchain.epochs]]
epoch_name = "3.0"
start_height = 3000000
start_height = 131
[[ustx_balance]]
address = "ST0DZFQ1XGHC5P1BZ6B7HSWQKQJHM74JBGCSDTNA"
Expand Down

0 comments on commit 9a13cd1

Please sign in to comment.