From 4e264ee88e765b9cd15369a02378091c6520a1e6 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 26 Jun 2018 16:58:48 -0700 Subject: [PATCH] rpc: include the FinalCltvDelta when writing new invoices to disk --- rpcserver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 5be59000..c58ed0a0 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -2659,7 +2659,8 @@ func (r *rpcServer) AddInvoice(ctx context.Context, Receipt: invoice.Receipt, PaymentRequest: []byte(payReqString), Terms: channeldb.ContractTerm{ - Value: amtMSat, + Value: amtMSat, + FinalCltvDelta: uint16(payReq.MinFinalCLTVExpiry()), }, } copy(i.Terms.PaymentPreimage[:], paymentPreimage[:])