wallet: fix up semi-cryptic wallet error message

There is evidence that this message can be confusing[1].
Suggest a way to resolve the error in the message.

[1] https://www.reddit.com/r/Bitcoin/comments/7ybcq9/programming_how_can_i_resolve_the_below_error/

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2018-07-03 07:37:01 -07:00 committed by Rusty Russell
parent f7dabd4fd8
commit 4a1b68502e

View File

@ -1932,7 +1932,9 @@ bool wallet_network_check(struct wallet *w,
if (!structeq(&chainhash, &chainparams->genesis_blockhash)) {
log_broken(w->log, "Wallet blockchain hash does not "
"match network blockchain hash: %s "
"!= %s",
"!= %s. "
"Are you on the right network? "
"(--network={bitcoin,testnet})",
type_to_string(w, struct bitcoin_blkid,
&chainhash),
type_to_string(w, struct bitcoin_blkid,