rpcserver: use cfg.Bitcoin.TimeLockDelta as default CLTVExpiry for invoices

This commit is contained in:
Johan T. Halseth 2017-12-17 14:33:09 +01:00
parent f4feb1e697
commit 1f6268cdde
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -2085,7 +2085,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
zpay32.CLTVExpiry(invoice.CltvExpiry)) zpay32.CLTVExpiry(invoice.CltvExpiry))
default: default:
// TODO(roasbeef): assumes set delta between versions // TODO(roasbeef): assumes set delta between versions
defaultDelta := defaultBitcoinForwardingPolicy.TimeLockDelta defaultDelta := cfg.Bitcoin.TimeLockDelta
options = append(options, zpay32.CLTVExpiry(uint64(defaultDelta))) options = append(options, zpay32.CLTVExpiry(uint64(defaultDelta)))
} }