pinheadmz / bcoin-guide

11 stars 6 forks source link

Added test network parameter #9

Closed IMPranshu closed 2 years ago

IMPranshu commented 2 years ago

image Fixes this error as it is trying to use the mainnet.

pinheadmz commented 2 years ago

See here: https://github.com/pinheadmz/bcoin-guide/blob/master/week-1-intro.md#run-bcoin-in-regtest-mode

If you set the environment variable first export BCOIN_NETWORK=regtest then all bcoin-cli commands will be directed at the regtest node. Since there are multiple commands in this guide, I think reminding students about this environment variable at the top of the week 2 guide would be a better fix. What do you think about that?

IMPranshu commented 2 years ago

Yes I skipped that line while going through so I had to add this to every line of code and then when I went through the link once more I saw that line. So this PR is not useful so closing it