Browse Source

Update migratecoin.sh

pull/5/head
Duke Leto 4 years ago
parent
commit
598aab0fbf
  1. 11
      migratecoin.sh

11
migratecoin.sh

@ -2,15 +2,12 @@
# Copyright (c) 2019-2020 The Hush developers # Copyright (c) 2019-2020 The Hush developers
# Distributed under the GPLv3 software license, see the accompanying # Distributed under the GPLv3 software license, see the accompanying
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html # file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
# This script makes the neccesary transactions to migrate # This script makes the neccesary transactions to migrate
# coin between 2 assetchains on the same -ac_cc id # coin between 2 assetchains on the same -ac_cc id
set -e set -e
source=DERPZ
source=TXSCL target=DERPZ000
target=TXSCL000 address="Rxxx"
address="RFw7byY4xZpZCrtkMk3nFuuG1NTs9rSGgQ"
amount=1 amount=1
# Alias for running cli on source chain # Alias for running cli on source chain
@ -36,7 +33,7 @@ exportSignedTx=`echo $exportSignedData | jq -r .hex`
echo "Sending export tx" echo "Sending export tx"
$cli_source sendrawtransaction $exportSignedTx $cli_source sendrawtransaction $exportSignedTx
read -p "Wait for a notarisation to KMD, and then two more notarisations from the target chain, and then press enter to continue" read -p "Wait for a notarization to HUSH, and then two more notarizations from the target chain, and then press enter to continue"
# Create import # Create import
importTx=`$cli_source migrate_createimporttransaction $exportSignedTx $payouts` importTx=`$cli_source migrate_createimporttransaction $exportSignedTx $payouts`

Loading…
Cancel
Save