Skip to content

Commit be6ea3b

Browse files
committed
lndclient: use old value field for backward compatibility
1 parent 0e2f3c9 commit be6ea3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lndclient/invoices_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (s *invoicesClient) AddHoldInvoice(ctx context.Context,
134134
rpcIn := &invoicesrpc.AddHoldInvoiceRequest{
135135
Memo: in.Memo,
136136
Hash: in.Hash[:],
137-
ValueMsat: int64(in.Value),
137+
Value: int64(in.Value.ToSatoshis()),
138138
Expiry: in.Expiry,
139139
CltvExpiry: in.CltvExpiry,
140140
Private: true,

lndclient/lightning_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func (s *lightningClient) AddInvoice(ctx context.Context,
323323

324324
rpcIn := &lnrpc.Invoice{
325325
Memo: in.Memo,
326-
ValueMsat: int64(in.Value),
326+
Value: int64(in.Value.ToSatoshis()),
327327
Expiry: in.Expiry,
328328
CltvExpiry: in.CltvExpiry,
329329
Private: true,

0 commit comments

Comments
 (0)