Adapt txgenerate to use testnet