generate-blocks.sh 622 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. set -e
  3. DATA='
  4. {
  5. "jsonrpc": "2.0",
  6. "id": 0,
  7. "method": "generateblocks",
  8. "params": {
  9. "amount_of_blocks": 2000000,
  10. "wallet_address": "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A",
  11. "starting_nonce": 0
  12. }
  13. }
  14. '
  15. curl "http://127.0.0.1:18081/json_rpc" -d "$DATA" \
  16. -H 'Content-Type: application/json' &
  17. cat <<EOF
  18. Now monerod should be generating the blocks.
  19. You can periodically type 'print_height' in the monerod console to
  20. see the progress. At 2M blocks, RandomX activates and the proxy is
  21. usable.
  22. EOF