diff --git a/rpcserver.go b/rpcserver.go index 744690e0..bf8e9908 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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))) }