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