mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 09:42:58 +02:00
rpc: include the FinalCltvDelta when writing new invoices to disk
This commit is contained in:
@@ -2660,6 +2660,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
|
|||||||
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