Guest User

Untitled

a guest
Aug 18th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. CLI="omnicore-cli"
  2. USER=""
  3. PASSWORD=""
  4. HOST="0.0.0.0"
  5. PORT=1001
  6. CLI_CMD="$CLI -rpcuser=\"$USER\" -rpcpassword=\"$PASSWORD\" -rpcconnect=\"$HOST\" -rpcport=$PORT"
  7.  
  8. public_addresses=()
  9. for pubaddr in ${public_addresses[@]}; do
  10. info=$(eval $CLI_CMD validateaddress "$pubaddr")
  11. if echo "$info" | grep -q "\"ismine\": false"; then
  12. echo "$pubaddr";
  13. fi
  14. done
Add Comment
Please, Sign In to add comment