|
|
|
@ -18,6 +18,13 @@ import (
|
|
|
|
|
|
|
|
|
|
"sync/atomic" |
|
|
|
|
|
|
|
|
|
"github.com/btcsuite/btcd/blockchain" |
|
|
|
|
"github.com/btcsuite/btcd/btcec" |
|
|
|
|
"github.com/btcsuite/btcd/chaincfg/chainhash" |
|
|
|
|
"github.com/btcsuite/btcd/txscript" |
|
|
|
|
"github.com/btcsuite/btcd/wire" |
|
|
|
|
"github.com/btcsuite/btcutil" |
|
|
|
|
"github.com/btcsuite/btcwallet/waddrmgr" |
|
|
|
|
"github.com/coreos/bbolt" |
|
|
|
|
"github.com/davecgh/go-spew/spew" |
|
|
|
|
"github.com/lightningnetwork/lnd/channeldb" |
|
|
|
@ -28,13 +35,6 @@ import (
|
|
|
|
|
"github.com/lightningnetwork/lnd/routing" |
|
|
|
|
"github.com/lightningnetwork/lnd/signal" |
|
|
|
|
"github.com/lightningnetwork/lnd/zpay32" |
|
|
|
|
"github.com/btcsuite/btcd/blockchain" |
|
|
|
|
"github.com/btcsuite/btcd/btcec" |
|
|
|
|
"github.com/btcsuite/btcd/chaincfg/chainhash" |
|
|
|
|
"github.com/btcsuite/btcd/txscript" |
|
|
|
|
"github.com/btcsuite/btcd/wire" |
|
|
|
|
"github.com/btcsuite/btcutil" |
|
|
|
|
"github.com/btcsuite/btcwallet/waddrmgr" |
|
|
|
|
"github.com/tv42/zbase32" |
|
|
|
|
"golang.org/x/net/context" |
|
|
|
|
) |
|
|
|
@ -2450,7 +2450,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
|
|
|
|
|
return nil, fmt.Errorf("payments of negative value "+ |
|
|
|
|
"are not allowed, value is %v", invoice.Value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
amt := btcutil.Amount(invoice.Value) |
|
|
|
|
amtMSat := lnwire.NewMSatFromSatoshis(amt) |
|
|
|
|
|
|
|
|
|