last things
1. make log file optional and specify the log file name in config.txt, if none or by default don't log.
2. config file should also be optional, we will change the default port to 2121 again, users are used to it.
3. Default rpc password / username should be empty string. It can be used no problem with BTC if you set
that in BTC config (if someone is in rush and doesn't care about security/syncing they won't be making a config file).
4. up the version counter for beta in deployment.go (need to increase it every time when releasing something,
because otherwise there would be versions in the wild that we won't be able to tell what it is later, it's ok to
skip versions)
minor things
message about use 546 sats to claim, change to 330 sats, (it's cheaper).
the message on the main page "COMB height is greater than BTC" is by itself ok but should be reworded,
probably something like "COMB height is different than BTC".
check_btc_is_caught_up() had no boolean result, check it before release, go build should pass
remove fmt.Println(hash), fmt.Println(segments_stack) from stack.go, it just
spams every time I sweep coins. It's not needed.
in general, turn our debug statements that we added so far into log printing or something,
When releasing beta, the less printing on console the better. Except when the coin
crashes. When a new dev joins he/she can put their own debug prints and see them,
not search for their own prints in a pile of spam.
Testnet tools:
To decode bc1 address into witness program:
http://bitcoin.sipa.be/bech32/demo/demo.htmlTo encode witness program back, but into testnet tb1 address (can be used to claim tesntet comb).
https://bc-2.jp/tools/bech32demo/index.htmlBitcoin command for testnet (prune needs to be high, because with low prune the BTC
will escape from and Comb will get fall behind unable to sync the blocks - "wrong height" ):
./bitcoin-qt -server -prune=55000 -rpcuser= -rpcpassword= -rpcport=8332 -testnet
Can generate brainwallet for testnet using:
http://127.0.0.1:2121/wallet/brain/<number of keys>/<brainpass>We've already synced with testnet. Let's hit faucet, get some testnet bitcoins, and claim some testnet comb.