mirror of
https://github.com/MAGICGrants/Monero-Dataset-Pipeline.git
synced 2026-01-09 13:37:57 -05:00
ready to start collection
This commit is contained in:
Binary file not shown.
Binary file not shown.
42
run.sh
42
run.sh
@@ -14,7 +14,7 @@ REMOTE_NODE="community.rino.io"
|
||||
FUNDING_DELAY="1"
|
||||
FUNDING_AMOUNT=".01"
|
||||
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 #
|
||||
@@ -98,26 +98,26 @@ done < <(find ./Wallets -mindepth 1 -type d | sort -u)
|
||||
|
||||
|
||||
|
||||
## Refresh the funding wallet before use
|
||||
#cat > ./$NETWORK-FundWallet.exp <<EOL
|
||||
##!/usr/bin/expect -f
|
||||
#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
|
||||
#match_max 10000
|
||||
#expect "Wallet password: "
|
||||
#send -- "\r"
|
||||
#expect "wallet*]:*"
|
||||
#send -- "set refresh-from-block-height 1038000\r"
|
||||
#expect "Wallet password:*"
|
||||
#send -- "\r"
|
||||
#expect "wallet*]:*"
|
||||
#send -- "rescan_bc soft\r"
|
||||
#expect "wallet*]:"
|
||||
#send -- "exit\r"
|
||||
#expect eof
|
||||
#EOL
|
||||
## Run the script
|
||||
#chmod 777 ./$NETWORK-FundWallet.exp && ./$NETWORK-FundWallet.exp
|
||||
# Refresh the funding wallet before use
|
||||
cat > ./$NETWORK-FundWallet.exp <<EOL
|
||||
#!/usr/bin/expect -f
|
||||
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
|
||||
match_max 10000
|
||||
expect "Wallet password: "
|
||||
send -- "\r"
|
||||
expect "wallet*]:*"
|
||||
send -- "set refresh-from-block-height 1038000\r"
|
||||
expect "Wallet password:*"
|
||||
send -- "\r"
|
||||
expect "wallet*]:*"
|
||||
send -- "rescan_bc soft\r"
|
||||
expect "wallet*]:"
|
||||
send -- "exit\r"
|
||||
expect eof
|
||||
EOL
|
||||
# Run the script
|
||||
chmod 777 ./$NETWORK-FundWallet.exp && ./$NETWORK-FundWallet.exp
|
||||
|
||||
|
||||
|
||||
|
||||
3
spawn.py
3
spawn.py
@@ -45,8 +45,7 @@ def main():
|
||||
rate = 1.61
|
||||
|
||||
# The time to stop collection in epoch
|
||||
endtime_epoch = datetime.fromtimestamp(int(END_COLLECTION_EPOCH_DATE)) # June 30th
|
||||
endtime_epoch = datetime.fromtimestamp(int(time())) + timedelta(seconds=(259200/2))
|
||||
endtime_epoch = datetime.fromtimestamp(int(END_COLLECTION_EPOCH_DATE))
|
||||
|
||||
# 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*/*"'
|
||||
|
||||
Reference in New Issue
Block a user