bitcoind: Don't log when a transaction output is detected as spent

Since we now check all P2WSH outputs in a block, this is getting quite a
common occurence, so logging just produces lots of noise.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2019-08-06 12:37:05 +02:00 committed by Rusty Russell
parent 98447e454e
commit 43b3eea783

View File

@ -555,8 +555,6 @@ static bool process_gettxout(struct bitcoin_cli *bcli)
/* As of at least v0.15.1.0, bitcoind returns "success" but an empty
string on a spent gettxout */
if (*bcli->exitstatus != 0 || bcli->output_bytes == 0) {
log_debug(bcli->bitcoind->log, "%s: not unspent output?",
bcli_args(tmpctx, bcli));
cb(bcli->bitcoind, NULL, bcli->cb_arg);
return true;
}