Browse Source

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>
ppa-0.6.1
William Casarin 7 years ago
committed by Rusty Russell
parent
commit
4a1b68502e
  1. 4
      wallet/wallet.c

4
wallet/wallet.c

@ -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,

Loading…
Cancel
Save