wallet: remove edgecase around transaction checks

we don't populate the tx item when we're running a transaction check
from deep chain (prior to a chain replay)
This commit is contained in:
lisa neigut
2019-12-30 17:36:00 -06:00
committed by Christian Decker
parent b2c4d5e952
commit 700b766ce1
4 changed files with 38 additions and 2 deletions

View File

@@ -990,7 +990,7 @@ static enum watch_result funding_depth_cb(struct lightningd *ld,
struct short_channel_id scid;
/* Sanity check */
if (tx && !check_funding_tx(tx, channel)) {
if (!check_funding_tx(tx, channel)) {
channel_internal_error(channel, "Bad tx %s: %s",
type_to_string(tmpctx,
struct bitcoin_txid, txid),