ready to start collection

This commit is contained in:
ACK-J
2022-04-19 10:38:10 -04:00
parent d0f3813355
commit f25acad80e
4 changed files with 22 additions and 23 deletions

Binary file not shown.

42
run.sh
View File

@@ -14,7 +14,7 @@ REMOTE_NODE="community.rino.io"
FUNDING_DELAY="1" FUNDING_DELAY="1"
FUNDING_AMOUNT=".01" FUNDING_AMOUNT=".01"
TERMINAL_TAB_DELAY="10" TERMINAL_TAB_DELAY="10"
END_COLLECTION_EPOCH_DATE="1656637261" # Must be in epoch time END_COLLECTION_EPOCH_DATE="1656637261" # Must be in epoch time (July 1st)
############################################################################# #############################################################################
# You shouldn't need to edit anything below this line # # You shouldn't need to edit anything below this line #
@@ -98,26 +98,26 @@ done < <(find ./Wallets -mindepth 1 -type d | sort -u)
## Refresh the funding wallet before use # Refresh the funding wallet before use
#cat > ./$NETWORK-FundWallet.exp <<EOL cat > ./$NETWORK-FundWallet.exp <<EOL
##!/usr/bin/expect -f #!/usr/bin/expect -f
#set timeout -1 set timeout -1
#spawn monero-wallet-cli --$NETWORK --wallet ./Funding_Wallets/${NETWORK^}-Funding --daemon-address $NETWORK.$REMOTE_NODE:$PORT --log-file /dev/null --trusted-daemon spawn monero-wallet-cli --$NETWORK --wallet ./Funding_Wallets/${NETWORK^}-Funding --daemon-address $NETWORK.$REMOTE_NODE:$PORT --log-file /dev/null --trusted-daemon
#match_max 10000 match_max 10000
#expect "Wallet password: " expect "Wallet password: "
#send -- "\r" send -- "\r"
#expect "wallet*]:*" expect "wallet*]:*"
#send -- "set refresh-from-block-height 1038000\r" send -- "set refresh-from-block-height 1038000\r"
#expect "Wallet password:*" expect "Wallet password:*"
#send -- "\r" send -- "\r"
#expect "wallet*]:*" expect "wallet*]:*"
#send -- "rescan_bc soft\r" send -- "rescan_bc soft\r"
#expect "wallet*]:" expect "wallet*]:"
#send -- "exit\r" send -- "exit\r"
#expect eof expect eof
#EOL EOL
## Run the script # Run the script
#chmod 777 ./$NETWORK-FundWallet.exp && ./$NETWORK-FundWallet.exp chmod 777 ./$NETWORK-FundWallet.exp && ./$NETWORK-FundWallet.exp

View File

@@ -45,8 +45,7 @@ def main():
rate = 1.61 rate = 1.61
# The time to stop collection in epoch # The time to stop collection in epoch
endtime_epoch = datetime.fromtimestamp(int(END_COLLECTION_EPOCH_DATE)) # June 30th endtime_epoch = datetime.fromtimestamp(int(END_COLLECTION_EPOCH_DATE))
endtime_epoch = datetime.fromtimestamp(int(time())) + timedelta(seconds=(259200/2))
# A one line bash command that will call the spend Expect script with an amount, priority and wallet id # A one line bash command that will call the spend Expect script with an amount, priority and wallet id
oneliner = './' + argv[1] + """-spend.exp $(python3 -c 'import random;print(format(random.uniform(0.0001, 0.000000000001), ".12f"))') $(python3 -c 'import random;print(random.randint(1,4))') """ + ' | grep -v "Height*/*"' oneliner = './' + argv[1] + """-spend.exp $(python3 -c 'import random;print(format(random.uniform(0.0001, 0.000000000001), ".12f"))') $(python3 -c 'import random;print(random.randint(1,4))') """ + ' | grep -v "Height*/*"'