makefile cleanup

separate local and stagenet configs
set useLocalhostForP2P=false for stagenet
add charlie
This commit is contained in:
woodser 2022-07-10 08:36:53 -04:00
parent 5ecd0e5a86
commit 5ebafecd8f

232
Makefile
View File

@ -37,6 +37,25 @@ deploy:
# give bitcoind rpc server time to start # give bitcoind rpc server time to start
sleep 5 sleep 5
bitcoind:
./.localnet/bitcoind \
-regtest \
-peerbloomfilters=1 \
-datadir=.localnet/ \
-rpcuser=haveno \
-rpcpassword=1234
btc-blocks:
./.localnet/bitcoin-cli \
-regtest \
-rpcuser=haveno \
-rpcpassword=1234 \
generatetoaddress 101 bcrt1q6j90vywv8x7eyevcnn2tn2wrlg3vsjlsvt46qz
.PHONY: build seednode localnet
# Local network
monerod-local1: monerod-local1:
./.localnet/monerod \ ./.localnet/monerod \
--testnet \ --testnet \
@ -65,12 +84,6 @@ monerod-local2:
--rpc-access-control-origins http://localhost:8080 \ --rpc-access-control-origins http://localhost:8080 \
--fixed-difficulty 100 --fixed-difficulty 100
monerod-stagenet:
./.localnet/monerod \
--stagenet \
--bootstrap-daemon-address auto \
--rpc-access-control-origins http://localhost:8080 \
funding-wallet-local: funding-wallet-local:
./.localnet/monero-wallet-rpc \ ./.localnet/monero-wallet-rpc \
--testnet \ --testnet \
@ -80,15 +93,6 @@ funding-wallet-local:
--rpc-access-control-origins http://localhost:8080 \ --rpc-access-control-origins http://localhost:8080 \
--wallet-dir ./.localnet --wallet-dir ./.localnet
funding-wallet-stagenet:
./.localnet/monero-wallet-rpc \
--stagenet \
--daemon-address http://localhost:38081 \
--rpc-bind-port 38084 \
--rpc-login rpc_user:abc123 \
--rpc-access-control-origins http://localhost:8080 \
--wallet-dir ./.localnet
seednode-local: seednode-local:
./haveno-seednode \ ./haveno-seednode \
--baseCurrencyNetwork=XMR_LOCAL \ --baseCurrencyNetwork=XMR_LOCAL \
@ -96,14 +100,18 @@ seednode-local:
--useDevPrivilegeKeys=true \ --useDevPrivilegeKeys=true \
--nodePort=2002 \ --nodePort=2002 \
--appName=haveno-XMR_LOCAL_Seed_2002 \ --appName=haveno-XMR_LOCAL_Seed_2002 \
seednode-stagenet: arbitrator-daemon-local:
./haveno-seednode \ # Arbitrator needs to be registered before making trades
--baseCurrencyNetwork=XMR_STAGENET \ ./haveno-daemon \
--baseCurrencyNetwork=XMR_LOCAL \
--useLocalhostForP2P=true \ --useLocalhostForP2P=true \
--useDevPrivilegeKeys=false \ --useDevPrivilegeKeys=true \
--nodePort=2002 \ --nodePort=4444 \
--appName=haveno-XMR_STAGENET_Seed_2002 \ --appName=haveno-XMR_LOCAL_arbitrator \
--apiPassword=apitest \
--apiPort=9998 \
--passwordRequired=false
arbitrator-desktop-local: arbitrator-desktop-local:
# Arbitrator needs to be registered before making trades # Arbitrator needs to be registered before making trades
@ -116,17 +124,6 @@ arbitrator-desktop-local:
--apiPassword=apitest \ --apiPassword=apitest \
--apiPort=9998 --apiPort=9998
arbitrator-desktop-stagenet:
# Arbitrator needs to be registered before making trades
./haveno-desktop \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=true \
--useDevPrivilegeKeys=false \
--nodePort=4444 \
--appName=haveno-XMR_STAGENET_arbitrator \
--apiPassword=apitest \
--apiPort=9998
arbitrator-desktop2-local: arbitrator-desktop2-local:
# Arbitrator needs to be registered before making trades # Arbitrator needs to be registered before making trades
./haveno-desktop \ ./haveno-desktop \
@ -138,28 +135,16 @@ arbitrator-desktop2-local:
--apiPassword=apitest \ --apiPassword=apitest \
--apiPort=10001 --apiPort=10001
arbitrator-daemon-local: alice-daemon-local:
# Arbitrator needs to be registered before making trades
./haveno-daemon \ ./haveno-daemon \
--baseCurrencyNetwork=XMR_LOCAL \ --baseCurrencyNetwork=XMR_LOCAL \
--useLocalhostForP2P=true \ --useLocalhostForP2P=true \
--useDevPrivilegeKeys=true \ --useDevPrivilegeKeys=true \
--nodePort=4444 \ --nodePort=5555 \
--appName=haveno-XMR_LOCAL_arbitrator \ --appName=haveno-XMR_LOCAL_Alice \
--apiPassword=apitest \ --apiPassword=apitest \
--apiPort=9998 \ --apiPort=9999 \
--passwordRequired=false --walletRpcBindPort=38091 \
arbitrator-daemon-stagenet:
# Arbitrator needs to be registered before making trades
./haveno-daemon \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=true \
--useDevPrivilegeKeys=false \
--nodePort=4444 \
--appName=haveno-XMR_STAGENET_arbitrator \
--apiPassword=apitest \
--apiPort=9998 \
--passwordRequired=false --passwordRequired=false
alice-desktop-local: alice-desktop-local:
@ -173,41 +158,6 @@ alice-desktop-local:
--apiPort=9999 \ --apiPort=9999 \
--walletRpcBindPort=38091 --walletRpcBindPort=38091
alice-desktop-stagenet:
./haveno-desktop \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=true \
--useDevPrivilegeKeys=false \
--nodePort=5555 \
--appName=haveno-XMR_STAGENET_Alice \
--apiPassword=apitest \
--apiPort=9999 \
--walletRpcBindPort=38091
alice-daemon-local:
./haveno-daemon \
--baseCurrencyNetwork=XMR_LOCAL \
--useLocalhostForP2P=true \
--useDevPrivilegeKeys=true \
--nodePort=5555 \
--appName=haveno-XMR_LOCAL_Alice \
--apiPassword=apitest \
--apiPort=9999 \
--walletRpcBindPort=38091 \
--passwordRequired=false
alice-daemon-stagenet:
./haveno-daemon \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=true \
--useDevPrivilegeKeys=false \
--nodePort=5555 \
--appName=haveno-XMR_STAGENET_Alice \
--apiPassword=apitest \
--apiPort=9999 \
--walletRpcBindPort=38091 \
--passwordRequired=false
bob-desktop-local: bob-desktop-local:
./haveno-desktop \ ./haveno-desktop \
--baseCurrencyNetwork=XMR_LOCAL \ --baseCurrencyNetwork=XMR_LOCAL \
@ -219,17 +169,6 @@ bob-desktop-local:
--apiPort=10000 \ --apiPort=10000 \
--walletRpcBindPort=38092 --walletRpcBindPort=38092
bob-desktop-stagenet:
./haveno-desktop \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=true \
--useDevPrivilegeKeys=false \
--nodePort=6666 \
--appName=haveno-XMR_STAGENET_Bob \
--apiPassword=apitest \
--apiPort=10000 \
--walletRpcBindPort=38092
bob-daemon-local: bob-daemon-local:
./haveno-daemon \ ./haveno-daemon \
--baseCurrencyNetwork=XMR_LOCAL \ --baseCurrencyNetwork=XMR_LOCAL \
@ -241,11 +180,73 @@ bob-daemon-local:
--apiPort=10000 \ --apiPort=10000 \
--walletRpcBindPort=38092 \ --walletRpcBindPort=38092 \
--passwordRequired=false --passwordRequired=false
# Stagenet network
monerod-stagenet:
./.localnet/monerod \
--stagenet \
--bootstrap-daemon-address auto \
--rpc-access-control-origins http://localhost:8080 \
seednode-stagenet:
./haveno-seednode \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=2002 \
--appName=haveno-XMR_STAGENET_Seed_2002 \
arbitrator-daemon-stagenet:
# Arbitrator needs to be registered before making trades
./haveno-daemon \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=4444 \
--appName=haveno-XMR_STAGENET_arbitrator \
--apiPassword=apitest \
--apiPort=9998 \
--passwordRequired=false
arbitrator-desktop-stagenet:
# Arbitrator needs to be registered before making trades
./haveno-desktop \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=4444 \
--appName=haveno-XMR_STAGENET_arbitrator \
--apiPassword=apitest \
--apiPort=9998
alice-daemon-stagenet:
./haveno-daemon \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=5555 \
--appName=haveno-XMR_STAGENET_Alice \
--apiPassword=apitest \
--apiPort=9999 \
--walletRpcBindPort=38091 \
--passwordRequired=false
alice-desktop-stagenet:
./haveno-desktop \
--baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \
--nodePort=5555 \
--appName=haveno-XMR_STAGENET_Alice \
--apiPassword=apitest \
--apiPort=9999 \
--walletRpcBindPort=38091
bob-daemon-stagenet: bob-daemon-stagenet:
./haveno-daemon \ ./haveno-daemon \
--baseCurrencyNetwork=XMR_STAGENET \ --baseCurrencyNetwork=XMR_STAGENET \
--useLocalhostForP2P=true \ --useLocalhostForP2P=false \
--useDevPrivilegeKeys=false \ --useDevPrivilegeKeys=false \
--nodePort=6666 \ --nodePort=6666 \
--appName=haveno-XMR_STAGENET_Bob \ --appName=haveno-XMR_STAGENET_Bob \
@ -254,19 +255,24 @@ bob-daemon-stagenet:
--walletRpcBindPort=38092 \ --walletRpcBindPort=38092 \
--passwordRequired=false --passwordRequired=false
bitcoind: bob-desktop-stagenet:
./.localnet/bitcoind \ ./haveno-desktop \
-regtest \ --baseCurrencyNetwork=XMR_STAGENET \
-peerbloomfilters=1 \ --useLocalhostForP2P=false \
-datadir=.localnet/ \ --useDevPrivilegeKeys=false \
-rpcuser=haveno \ --nodePort=6666 \
-rpcpassword=1234 --appName=haveno-XMR_STAGENET_Bob \
--apiPassword=apitest \
--apiPort=10000 \
--walletRpcBindPort=38092
btc-blocks: charlie-desktop-stagenet:
./.localnet/bitcoin-cli \ ./haveno-desktop \
-regtest \ --baseCurrencyNetwork=XMR_STAGENET \
-rpcuser=haveno \ --useLocalhostForP2P=false \
-rpcpassword=1234 \ --useDevPrivilegeKeys=false \
generatetoaddress 101 bcrt1q6j90vywv8x7eyevcnn2tn2wrlg3vsjlsvt46qz --nodePort=8888 \
--appName=haveno-XMR_STAGENET_Charlie \
.PHONY: build seednode localnet --apiPassword=apitest \
--apiPort=10002 \
--walletRpcBindPort=38093