-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathenv.sh
More file actions
executable file
·43 lines (32 loc) · 1.24 KB
/
Copy pathenv.sh
File metadata and controls
executable file
·43 lines (32 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# version for bitcoin core tarball
BITCOIN_VERSION=28.0
# path for bitcoin datadir
BITCOIN_DATADIR=$PWD/bitcoin_datadir
# path for bitcoin core binaries
BITCOIN_UNPACKED=$PWD/bitcoin-$BITCOIN_VERSION
BITCOIND=$BITCOIN_UNPACKED/bin/bitcoind
BITCOIN_CLI=$BITCOIN_UNPACKED/bin/bitcoin-cli
# path for potential plebnet snapshot
PLEBNET_SNAPSHOT=$PWD/plebnet_snapshot
# IP of plebnet genesis node
PLEBNET_GENESIS_NODE_IP=185.130.45.51
# paths for stratum-server
STRATUM_SERVER_DIR=$PWD/stratum-server
STRATUM_SERVER_CONF=$STRATUM_SERVER_DIR/stratum-server.conf
STRATUM_SERVER_BIN=$STRATUM_SERVER_DIR/src/ckpool
# alias to conveniently start bitcoind
alias btcd="$BITCOIND -signet -datadir=$BITCOIN_DATADIR -fallbackfee=0.01"
# alias to conveniently call bitcoin-cli
alias btc="$BITCOIN_CLI -signet -datadir=$BITCOIN_DATADIR"
# alias to conveniently start stratum-server
alias stratum-server="$STRATUM_SERVER_BIN -c $STRATUM_SERVER_CONF"
# mujina CPU miner
MUJINA_BIN=$PWD/mujina/target/release/mujina-minerd
export MUJINA_USB_DISABLE=1
export MUJINA_CPUMINER_THREADS=4
export MUJINA_CPUMINER_DUTY=100
export MUJINA_POOL_URL="stratum+tcp://localhost:3333"
export MUJINA_POOL_USER="worker1"
# alias to conveniently start mujina
alias mujina="$MUJINA_BIN"