channeld: get current block height when an HTLC fails.

We need it to put in the error code for
WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-08-28 13:35:43 +09:30
committed by Christian Decker
parent 6349222ea2
commit 2600a6ed2e
9 changed files with 33 additions and 10 deletions

View File

@@ -357,7 +357,8 @@ int main(int argc, char *argv[])
&funding_localkey, &funding_remotekey,
fee_payer);
if (!channel_force_htlcs(channel, htlcs, hstates, NULL, NULL, NULL, NULL))
if (!channel_force_htlcs(channel, htlcs, hstates, NULL, NULL, NULL, NULL,
0))
errx(1, "Cannot add HTLCs");
u8 *funding_wscript = bitcoin_redeem_2of2(NULL,