lndclient: use old value field for backward compatibility

pull/122/head
Oliver Gugger 4 years ago
parent 0e2f3c9571
commit be6ea3bdeb
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -134,7 +134,7 @@ func (s *invoicesClient) AddHoldInvoice(ctx context.Context,
rpcIn := &invoicesrpc.AddHoldInvoiceRequest{
Memo: in.Memo,
Hash: in.Hash[:],
ValueMsat: int64(in.Value),
Value: int64(in.Value.ToSatoshis()),
Expiry: in.Expiry,
CltvExpiry: in.CltvExpiry,
Private: true,

@ -323,7 +323,7 @@ func (s *lightningClient) AddInvoice(ctx context.Context,
rpcIn := &lnrpc.Invoice{
Memo: in.Memo,
ValueMsat: int64(in.Value),
Value: int64(in.Value.ToSatoshis()),
Expiry: in.Expiry,
CltvExpiry: in.CltvExpiry,
Private: true,

Loading…
Cancel
Save