rpc: include the FinalCltvDelta when writing new invoices to disk
This commit is contained in:
parent
a2f0d6d38e
commit
4e264ee88e
@ -2660,6 +2660,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
|
||||
PaymentRequest: []byte(payReqString),
|
||||
Terms: channeldb.ContractTerm{
|
||||
Value: amtMSat,
|
||||
FinalCltvDelta: uint16(payReq.MinFinalCLTVExpiry()),
|
||||
},
|
||||
}
|
||||
copy(i.Terms.PaymentPreimage[:], paymentPreimage[:])
|
||||
|
Loading…
Reference in New Issue
Block a user