mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
add extra log to tell whether new wallet is created for devnet
This commit is contained in:
parent
930497318e
commit
025f67bf83
1 changed files with 2 additions and 0 deletions
|
|
@ -12,9 +12,11 @@ then
|
||||||
private_key=${private_keys[ $RANDOM % ${#private_keys[@]} ]}
|
private_key=${private_keys[ $RANDOM % ${#private_keys[@]} ]}
|
||||||
|
|
||||||
echo "${private_key}" >> /tmp/key
|
echo "${private_key}" >> /tmp/key
|
||||||
|
echo "Creating a new wallet"
|
||||||
wallet=$(XDC account import --password .pwd --datadir /work/xdcchain /tmp/key | awk -v FS="({|})" '{print $2}')
|
wallet=$(XDC account import --password .pwd --datadir /work/xdcchain /tmp/key | awk -v FS="({|})" '{print $2}')
|
||||||
XDC --datadir /work/xdcchain init /work/genesis.json
|
XDC --datadir /work/xdcchain init /work/genesis.json
|
||||||
else
|
else
|
||||||
|
echo "Wallet already exist, re-use the same one"
|
||||||
wallet=$(XDC account list --datadir /work/xdcchain | head -n 1 | awk -v FS="({|})" '{print $2}')
|
wallet=$(XDC account list --datadir /work/xdcchain | head -n 1 | awk -v FS="({|})" '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue