Revert "rpc: include the FinalCltvDelta when writing new invoices to disk"
This reverts commit 4e264ee88e.
This commit is contained in:
1 parent
e5f802c33c
commit
c914de177b
1 file changed
+1
-2
+1
-2
@@ -2660,8 +2660,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
|
||||
Receipt: invoice.Receipt,
|
||||
PaymentRequest: []byte(payReqString),
|
||||
Terms: channeldb.ContractTerm{
|
||||
Value: amtMSat,
|
||||
FinalCltvDelta: uint16(payReq.MinFinalCLTVExpiry()),
|
||||
Value: amtMSat,
|
||||
},
|
||||
}
|
||||
copy(i.Terms.PaymentPreimage[:], paymentPreimage[:])
|
||||
|
||||
Reference in new issue
Block a user