rpcserver: use cfg.Bitcoin.TimeLockDelta as default CLTVExpiry for invoices
This commit is contained in:
parent
f4feb1e697
commit
1f6268cdde
@ -2085,7 +2085,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
|
||||
zpay32.CLTVExpiry(invoice.CltvExpiry))
|
||||
default:
|
||||
// TODO(roasbeef): assumes set delta between versions
|
||||
defaultDelta := defaultBitcoinForwardingPolicy.TimeLockDelta
|
||||
defaultDelta := cfg.Bitcoin.TimeLockDelta
|
||||
options = append(options, zpay32.CLTVExpiry(uint64(defaultDelta)))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user