Browse Source

new file: a-team/scripts.notary/resetALL_wallet

modified:   a-team/scripts.notary/sendtoself
	new file:   a-team/scripts.notary/sync_ramdisk
master^2
blackjok3r 7 years ago
parent
commit
e62329c28b
  1. 18
      a-team/scripts.notary/resetALL_wallet
  2. 2
      a-team/scripts.notary/sendtoself
  3. 5
      a-team/scripts.notary/sync_ramdisk

18
a-team/scripts.notary/resetALL_wallet

@ -0,0 +1,18 @@
#!/bin/bash
declare -a skip=("BEER" "PIZZA")
delay=0.5
NNaddress=RSuXRScqHNbRFqjur2C3tf3oDoauBs2B1i
NNprivkey=$(ssh node@172.16.16.11 "bash -s" -- < ./dumpKMDprivkey $NNaddress)
komodo-cli importprivkey $NNprivkey "" false
ssh node@172.16.16.11 "bash -s" -- < ./sendtoself $NNaddress
~/komodo/src/listassetchains | while read chain; do
if [[ " ${skip[@]} " =~ " ${chain} " ]]; then
pointless=0
else
echo $chain
komodo-cli -ac_name=$chain importprivkey $NNprivkey "" false
ssh node@172.16.16.11 "bash -s" -- < ./sendtoself $NNaddress $chain
sleep $delay
fi
done

2
a-team/scripts.notary/sendtoself

@ -1,2 +1,2 @@
#!/bin/bash
komodo-cli sendtoaddress $1 $(komodo-cli getbalance) "" "" true
komodo-cli -ac_name=$2 sendtoaddress $1 $(komodo-cli -ac_name=$2 getbalance) "" "" true

5
a-team/scripts.notary/sync_ramdisk

@ -0,0 +1,5 @@
#!/bin/bash
# Rsync .komodo folder from seed node
rsync -avzh node@172.16.16.11:/mnt/komodo_data/ /mnt/ramdisk
# Delete all wallet.dat's
find /mnt/ramdisk -name 'wallet.dat' -delete
Loading…
Cancel
Save