mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
lndclient: use old value field for backward compatibility
This commit is contained in:
parent
0e2f3c9571
commit
be6ea3bdeb
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue