Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
updated utils to handle regtest, simnet #153
These patches should also include a 'numNets' variable or similar so that multiple alternate networks specified either on the command line or in a config file can be caught. Take a look at how btcd implements this in config.go.
The network parameters also includes the network name, so showblock could get the name directly from there instead of hardcoding the directory name. The only gotcha here is that btcd saves testnet3 data into a "testnet" directory instead, so take a look at the netName function in btcd params.go for a sane way to get around this.