mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 04:13:06 +02:00
rpc: include the FinalCltvDelta when writing new invoices to disk
This commit is contained in:
@@ -2659,7 +2659,8 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
|
|||||||
Receipt: invoice.Receipt,
|
Receipt: invoice.Receipt,
|
||||||
PaymentRequest: []byte(payReqString),
|
PaymentRequest: []byte(payReqString),
|
||||||
Terms: channeldb.ContractTerm{
|
Terms: channeldb.ContractTerm{
|
||||||
Value: amtMSat,
|
Value: amtMSat,
|
||||||
|
FinalCltvDelta: uint16(payReq.MinFinalCLTVExpiry()),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
copy(i.Terms.PaymentPreimage[:], paymentPreimage[:])
|
copy(i.Terms.PaymentPreimage[:], paymentPreimage[:])
|
||||||
|
Reference in New Issue
Block a user