From 4a1b68502e3485a6d192b94cad3240c600e195a3 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 3 Jul 2018 07:37:01 -0700 Subject: [PATCH] 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 --- wallet/wallet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wallet/wallet.c b/wallet/wallet.c index 029a1cf9a..689e76975 100644 --- a/wallet/wallet.c +++ b/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,