```
# Shows help message
set-checkpoint.py -h
# Mainnet Tests
# -------------
bitcoind --rest=1
# Default works as expected (mainnet chainparams replaced with best tip)
set-checkpoint.py
# Trying testnet without the correct hostport gives an error
set-checkpoint.py -t
set-checkpoint.py -t -p 18332
# Specifying a blockhash replaces chainparams with that block and it's chainwork instead
set-checkpoint.py -b <someblockhash>
# Testnet Tests
# -------------
bitcoind --rest=1 --testnet
# Default throws an error because it expects mainnet
set-checkpoint.py
# Testnet works as expected (testnet chainparams replaced with best tip)
set-checkpoint.py -t
# Specifying a blockhash replaces testnet chainparams with that block and it's chainwork instead
set-checkpoint.py -t -b <someblockhash>
```