lndclient: use old value field for backward compatibility

This commit is contained in:
Oliver Gugger 2019-12-03 13:39:32 +01:00
parent 0e2f3c9571
commit be6ea3bdeb
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,