|
|
@ -2,26 +2,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export DAEMON_URI="${1}"
|
|
|
|
export DAEMON_URI="${1}"
|
|
|
|
export WALLET_CREDS="${2}"
|
|
|
|
|
|
|
|
export WALLET_FILE="/wallet/wallet"
|
|
|
|
export WALLET_FILE="/wallet/wallet"
|
|
|
|
export PASSWORD_FILE="/wallet/password"
|
|
|
|
export PASSWORD_FILE="/wallet/password"
|
|
|
|
export INIT_LOG="/wallet/init.log"
|
|
|
|
export INIT_LOG="/wallet/init.log"
|
|
|
|
|
|
|
|
|
|
|
|
# Create new wallet if it doesn't exist
|
|
|
|
|
|
|
|
if [[ ! -f ${WALLET_FILE} ]]; then
|
|
|
|
if [[ ! -f ${WALLET_FILE} ]]; then
|
|
|
|
echo $WALLET_CREDS > ${PASSWORD_FILE}
|
|
|
|
echo -e "[!] Wallet file does not exist. Create a new wallet and upload the private view keys to BTCPayServer"
|
|
|
|
wownero-wallet-cli \
|
|
|
|
sleep 10
|
|
|
|
--generate-new-wallet ${WALLET_FILE} \
|
|
|
|
exit 1
|
|
|
|
--daemon-address ${DAEMON_URI} \
|
|
|
|
|
|
|
|
--password-file ${PASSWORD_FILE} \
|
|
|
|
|
|
|
|
--trusted-daemon \
|
|
|
|
|
|
|
|
--use-english-language-names \
|
|
|
|
|
|
|
|
--mnemonic-language English \
|
|
|
|
|
|
|
|
--command status \
|
|
|
|
|
|
|
|
| tee ${INIT_LOG}
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Run RPC wallet
|
|
|
|
|
|
|
|
wownero-wallet-rpc \
|
|
|
|
wownero-wallet-rpc \
|
|
|
|
--daemon-address ${DAEMON_URI} \
|
|
|
|
--daemon-address ${DAEMON_URI} \
|
|
|
|
--wallet-file ${WALLET_FILE} \
|
|
|
|
--wallet-file ${WALLET_FILE} \
|
|
|
@ -35,3 +25,5 @@ wownero-wallet-rpc \
|
|
|
|
--non-interactive \
|
|
|
|
--non-interactive \
|
|
|
|
--trusted-daemon \
|
|
|
|
--trusted-daemon \
|
|
|
|
--tx-notify="/usr/bin/curl -s -X GET http://btcpayserver:49392/wownerolikedaemoncallback/tx?cryptoCode=wow&hash=%s"
|
|
|
|
--tx-notify="/usr/bin/curl -s -X GET http://btcpayserver:49392/wownerolikedaemoncallback/tx?cryptoCode=wow&hash=%s"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sleep 5
|