channeldb: save outgoing payments
Add structure for outgoing payments. Saving payment in DB after successful payment send. Add RPC call for listing all payments.
This commit is contained in:
parent
343cd7779f
commit
eb4d0e035e
@ -14,6 +14,8 @@ var (
|
|||||||
ErrNoInvoicesCreated = fmt.Errorf("there are no existing invoices")
|
ErrNoInvoicesCreated = fmt.Errorf("there are no existing invoices")
|
||||||
ErrDuplicateInvoice = fmt.Errorf("invoice with payment hash already exists")
|
ErrDuplicateInvoice = fmt.Errorf("invoice with payment hash already exists")
|
||||||
|
|
||||||
|
ErrNoPaymentsCreated = fmt.Errorf("there are no existing payments")
|
||||||
|
|
||||||
ErrNodeNotFound = fmt.Errorf("link node with target identity not found")
|
ErrNodeNotFound = fmt.Errorf("link node with target identity not found")
|
||||||
ErrMetaNotFound = fmt.Errorf("unable to locate meta information")
|
ErrMetaNotFound = fmt.Errorf("unable to locate meta information")
|
||||||
|
|
||||||
|
@ -98,11 +98,7 @@ type Invoice struct {
|
|||||||
Terms ContractTerm
|
Terms ContractTerm
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddInvoice inserts the targeted invoice into the database. If the invoice
|
func validateInvoice(i *Invoice) error {
|
||||||
// has *any* payment hashes which already exists within the database, then the
|
|
||||||
// insertion will be aborted and rejected due to the strict policy banning any
|
|
||||||
// duplicate payment hashes.
|
|
||||||
func (d *DB) AddInvoice(i *Invoice) error {
|
|
||||||
if len(i.Memo) > MaxMemoSize {
|
if len(i.Memo) > MaxMemoSize {
|
||||||
return fmt.Errorf("max length a memo is %v, and invoice "+
|
return fmt.Errorf("max length a memo is %v, and invoice "+
|
||||||
"of length %v was provided", MaxMemoSize, len(i.Memo))
|
"of length %v was provided", MaxMemoSize, len(i.Memo))
|
||||||
@ -112,7 +108,18 @@ func (d *DB) AddInvoice(i *Invoice) error {
|
|||||||
"of length %v was provided", MaxReceiptSize,
|
"of length %v was provided", MaxReceiptSize,
|
||||||
len(i.Receipt))
|
len(i.Receipt))
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// AddInvoice inserts the targeted invoice into the database. If the invoice
|
||||||
|
// has *any* payment hashes which already exists within the database, then the
|
||||||
|
// insertion will be aborted and rejected due to the strict policy banning any
|
||||||
|
// duplicate payment hashes.
|
||||||
|
func (d *DB) AddInvoice(i *Invoice) error {
|
||||||
|
err := validateInvoice(i)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
return d.Update(func(tx *bolt.Tx) error {
|
return d.Update(func(tx *bolt.Tx) error {
|
||||||
invoices, err := tx.CreateBucketIfNotExists(invoiceBucket)
|
invoices, err := tx.CreateBucketIfNotExists(invoiceBucket)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
211
channeldb/payments.go
Normal file
211
channeldb/payments.go
Normal file
@ -0,0 +1,211 @@
|
|||||||
|
package channeldb
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/roasbeef/btcutil"
|
||||||
|
"io"
|
||||||
|
"github.com/roasbeef/btcd/wire"
|
||||||
|
"github.com/boltdb/bolt"
|
||||||
|
"encoding/binary"
|
||||||
|
"bytes"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// invoiceBucket is the name of the bucket within the database that
|
||||||
|
// stores all data related to payments.
|
||||||
|
// Within the payments bucket, each invoice is keyed by its invoice ID
|
||||||
|
// which is a monotonically increasing uint64.
|
||||||
|
// BoltDB sequence feature is used for generating monotonically increasing
|
||||||
|
// id.
|
||||||
|
paymentBucket = []byte("payments")
|
||||||
|
)
|
||||||
|
|
||||||
|
type OutgoingPayment struct {
|
||||||
|
Invoice
|
||||||
|
// Total fee paid
|
||||||
|
Fee btcutil.Amount
|
||||||
|
// Path including starting and ending nodes
|
||||||
|
Path [][]byte
|
||||||
|
TimeLockLength uint64
|
||||||
|
// We probably need both RHash and Preimage
|
||||||
|
// because we start knowing only RHash
|
||||||
|
RHash [32]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
func validatePayment(p *OutgoingPayment) error {
|
||||||
|
err := validateInvoice(&p.Invoice)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// AddPayment adds payment to DB.
|
||||||
|
// There is no checking that payment with the same hash already exist.
|
||||||
|
func (db *DB) AddPayment(p *OutgoingPayment) error {
|
||||||
|
err := validatePayment(p)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
// We serialize before writing to database
|
||||||
|
// so no db access in the case of serialization errors
|
||||||
|
b := new(bytes.Buffer)
|
||||||
|
err = serializeOutgoingPayment(b, p)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
paymentBytes := b.Bytes()
|
||||||
|
return db.Update(func (tx *bolt.Tx) error {
|
||||||
|
payments, err := tx.CreateBucketIfNotExists(paymentBucket)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
paymentId, err := payments.NextSequence()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
// We use BigEndian for keys because
|
||||||
|
// it orders keys in ascending order
|
||||||
|
paymentIdBytes := make([]byte, 8)
|
||||||
|
binary.BigEndian.PutUint64(paymentIdBytes, paymentId)
|
||||||
|
err = payments.Put(paymentIdBytes, paymentBytes)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// FetchAllPayments returns all outgoing payments in DB.
|
||||||
|
func (db *DB) FetchAllPayments() ([]*OutgoingPayment, error) {
|
||||||
|
var payments []*OutgoingPayment
|
||||||
|
err := db.View(func (tx *bolt.Tx) error {
|
||||||
|
bucket := tx.Bucket(paymentBucket)
|
||||||
|
if bucket == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
err := bucket.ForEach(func (k, v []byte) error {
|
||||||
|
// Value can be nil if it is a sub-backet
|
||||||
|
// so simply ignore it.
|
||||||
|
if v == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
r := bytes.NewReader(v)
|
||||||
|
payment, err := deserializeOutgoingPayment(r)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
payments = append(payments, payment)
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
return err
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return payments, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeleteAllPayments deletes all payments from DB.
|
||||||
|
// If payments bucket does not exist it will create
|
||||||
|
// new bucket without error.
|
||||||
|
func (db *DB) DeleteAllPayments() error {
|
||||||
|
return db.Update(func (tx *bolt.Tx) error {
|
||||||
|
err := tx.DeleteBucket(paymentBucket)
|
||||||
|
if err != nil && err != bolt.ErrBucketNotFound {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_, err = tx.CreateBucket(paymentBucket)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func serializeOutgoingPayment(w io.Writer, p *OutgoingPayment) error {
|
||||||
|
err := serializeInvoice(w, &p.Invoice)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
// Serialize fee.
|
||||||
|
feeBytes := make([]byte, 8)
|
||||||
|
byteOrder.PutUint64(feeBytes, uint64(p.Fee))
|
||||||
|
_, err = w.Write(feeBytes)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
// Serialize path.
|
||||||
|
pathLen := uint32(len(p.Path))
|
||||||
|
pathLenBytes := make([]byte, 4)
|
||||||
|
byteOrder.PutUint32(pathLenBytes, pathLen)
|
||||||
|
_, err = w.Write(pathLenBytes)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
for i := uint32(0); i < pathLen; i++ {
|
||||||
|
err := wire.WriteVarBytes(w, 0, p.Path[i])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Serialize TimeLockLength
|
||||||
|
timeLockLengthBytes := make([]byte, 8)
|
||||||
|
byteOrder.PutUint64(timeLockLengthBytes, p.TimeLockLength)
|
||||||
|
_, err = w.Write(timeLockLengthBytes)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
// Serialize RHash
|
||||||
|
_, err = w.Write(p.RHash[:])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func deserializeOutgoingPayment(r io.Reader) (*OutgoingPayment, error) {
|
||||||
|
p := &OutgoingPayment{}
|
||||||
|
// Deserialize invoice
|
||||||
|
inv, err := deserializeInvoice(r)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
p.Invoice = *inv
|
||||||
|
// Deserialize fee
|
||||||
|
feeBytes := make([]byte, 8)
|
||||||
|
_, err = r.Read(feeBytes)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
p.Fee = btcutil.Amount(byteOrder.Uint64(feeBytes))
|
||||||
|
// Deserialize path
|
||||||
|
pathLenBytes := make([]byte, 4)
|
||||||
|
_, err = r.Read(pathLenBytes)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
pathLen := byteOrder.Uint32(pathLenBytes)
|
||||||
|
path := make([][]byte, pathLen)
|
||||||
|
for i := uint32(0); i<pathLen; i++ {
|
||||||
|
// Each node in path have 33 bytes. It may be changed in future.
|
||||||
|
// So put 100 here.
|
||||||
|
path[i], err = wire.ReadVarBytes(r, 0, 100, "Node id")
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p.Path = path
|
||||||
|
// Deserialize TimeLockLength
|
||||||
|
timeLockLengthBytes := make([]byte, 8)
|
||||||
|
_, err = r.Read(timeLockLengthBytes)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
p.TimeLockLength = byteOrder.Uint64(timeLockLengthBytes)
|
||||||
|
// Deserialize RHash
|
||||||
|
_, err = r.Read(p.RHash[:])
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return p, nil
|
||||||
|
}
|
163
channeldb/payments_test.go
Normal file
163
channeldb/payments_test.go
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
package channeldb
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
"github.com/roasbeef/btcutil"
|
||||||
|
"bytes"
|
||||||
|
"reflect"
|
||||||
|
"github.com/davecgh/go-spew/spew"
|
||||||
|
"math/rand"
|
||||||
|
"fmt"
|
||||||
|
"github.com/btcsuite/fastsha256"
|
||||||
|
)
|
||||||
|
|
||||||
|
func makeFakePayment() *OutgoingPayment {
|
||||||
|
// Create a fake invoice which we'll use several times in the tests
|
||||||
|
// below.
|
||||||
|
fakeInvoice := &Invoice{
|
||||||
|
CreationDate: time.Now(),
|
||||||
|
}
|
||||||
|
fakeInvoice.Memo = []byte("memo")
|
||||||
|
fakeInvoice.Receipt = []byte("recipt")
|
||||||
|
copy(fakeInvoice.Terms.PaymentPreimage[:], rev[:])
|
||||||
|
fakeInvoice.Terms.Value = btcutil.Amount(10000)
|
||||||
|
// Make fake path
|
||||||
|
fakePath := make([][]byte, 3)
|
||||||
|
for i:=0; i<3; i++ {
|
||||||
|
fakePath[i] = make([]byte, 33)
|
||||||
|
for j:=0; j<33; j++ {
|
||||||
|
fakePath[i][j] = byte(i)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var rHash [32]byte = fastsha256.Sum256(rev[:])
|
||||||
|
fakePayment := & OutgoingPayment{
|
||||||
|
Invoice: *fakeInvoice,
|
||||||
|
Fee: 101,
|
||||||
|
Path: fakePath,
|
||||||
|
TimeLockLength: 1000,
|
||||||
|
RHash: rHash,
|
||||||
|
}
|
||||||
|
return fakePayment
|
||||||
|
}
|
||||||
|
|
||||||
|
// randomBytes creates random []byte with length
|
||||||
|
// in range [minLen, maxLen)
|
||||||
|
func randomBytes(minLen, maxLen int) []byte {
|
||||||
|
l := minLen + rand.Intn(maxLen-minLen)
|
||||||
|
b := make([]byte, l)
|
||||||
|
_, err := rand.Read(b)
|
||||||
|
if err != nil {
|
||||||
|
panic(fmt.Sprintf("Internal error. Cannot generate random string: %v", err))
|
||||||
|
}
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
func makeRandomFakePayment() *OutgoingPayment {
|
||||||
|
// Create a fake invoice which we'll use several times in the tests
|
||||||
|
// below.
|
||||||
|
fakeInvoice := &Invoice{
|
||||||
|
CreationDate: time.Now(),
|
||||||
|
}
|
||||||
|
fakeInvoice.Memo = randomBytes(1, 50)
|
||||||
|
fakeInvoice.Receipt = randomBytes(1, 50)
|
||||||
|
copy(fakeInvoice.Terms.PaymentPreimage[:], randomBytes(32, 33))
|
||||||
|
fakeInvoice.Terms.Value = btcutil.Amount(rand.Intn(10000))
|
||||||
|
// Make fake path
|
||||||
|
fakePathLen := 1 + rand.Intn(5)
|
||||||
|
fakePath := make([][]byte, fakePathLen)
|
||||||
|
for i:=0; i<fakePathLen; i++ {
|
||||||
|
fakePath[i] = randomBytes(33, 34)
|
||||||
|
}
|
||||||
|
var rHash [32]byte = fastsha256.Sum256(
|
||||||
|
fakeInvoice.Terms.PaymentPreimage[:],
|
||||||
|
)
|
||||||
|
fakePayment := & OutgoingPayment{
|
||||||
|
Invoice: *fakeInvoice,
|
||||||
|
Fee: btcutil.Amount(rand.Intn(1001)),
|
||||||
|
Path: fakePath,
|
||||||
|
TimeLockLength: uint64(rand.Intn(10000)),
|
||||||
|
RHash: rHash,
|
||||||
|
}
|
||||||
|
return fakePayment
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestOutgoingPaymentSerialization(t *testing.T) {
|
||||||
|
fakePayment := makeFakePayment()
|
||||||
|
b := new(bytes.Buffer)
|
||||||
|
err := serializeOutgoingPayment(b, fakePayment)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't serialize outgoing payment: %v", err)
|
||||||
|
}
|
||||||
|
newPayment, err := deserializeOutgoingPayment(b)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't deserialize outgoing payment: %v", err)
|
||||||
|
}
|
||||||
|
if !reflect.DeepEqual(fakePayment, newPayment) {
|
||||||
|
t.Fatalf("Payments do not match after serialization/deserialization %v vs %v",
|
||||||
|
spew.Sdump(fakePayment),
|
||||||
|
spew.Sdump(newPayment),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestOutgoingPaymentWorkflow(t *testing.T) {
|
||||||
|
db, cleanUp, err := makeTestDB()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("unable to make test db: %v", err)
|
||||||
|
}
|
||||||
|
defer cleanUp()
|
||||||
|
|
||||||
|
fakePayment := makeFakePayment()
|
||||||
|
err = db.AddPayment(fakePayment)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't put payment in DB: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
payments, err := db.FetchAllPayments()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't get payments from DB: %v", err)
|
||||||
|
}
|
||||||
|
correctPayments := []*OutgoingPayment{fakePayment}
|
||||||
|
if !reflect.DeepEqual(payments, correctPayments) {
|
||||||
|
t.Fatalf("Wrong payments after reading from DB."+
|
||||||
|
"Got %v, want %v",
|
||||||
|
spew.Sdump(payments),
|
||||||
|
spew.Sdump(correctPayments),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make some random payments
|
||||||
|
for i:=0; i<5; i++ {
|
||||||
|
randomPayment := makeRandomFakePayment()
|
||||||
|
err := db.AddPayment(randomPayment)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't put payment in DB: %v", err)
|
||||||
|
}
|
||||||
|
correctPayments = append(correctPayments, randomPayment)
|
||||||
|
}
|
||||||
|
payments, err = db.FetchAllPayments()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't get payments from DB: %v", err)
|
||||||
|
}
|
||||||
|
if !reflect.DeepEqual(payments, correctPayments) {
|
||||||
|
t.Fatalf("Wrong payments after reading from DB."+
|
||||||
|
"Got %v, want %v",
|
||||||
|
spew.Sdump(payments),
|
||||||
|
spew.Sdump(correctPayments),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete all payments.
|
||||||
|
err = db.DeleteAllPayments()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't delete payments from DB: %v", err)
|
||||||
|
}
|
||||||
|
paymentsAfterDeletion, err := db.FetchAllPayments()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't get payments after deletion: %v", err)
|
||||||
|
}
|
||||||
|
if len(paymentsAfterDeletion) != 0 {
|
||||||
|
t.Fatalf("After deletion DB has %v payments, want %v", len(paymentsAfterDeletion), 0)
|
||||||
|
}
|
||||||
|
}
|
@ -1076,3 +1076,27 @@ func printRTAsJSON(r *rt.RoutingTable) {
|
|||||||
}
|
}
|
||||||
printRespJson(channels)
|
printRespJson(channels)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var ListPaymentsCommand = cli.Command{
|
||||||
|
Name: "listpayments",
|
||||||
|
Usage: "listpayments",
|
||||||
|
Description: "list all outgoing payments",
|
||||||
|
Action: listPayments,
|
||||||
|
}
|
||||||
|
|
||||||
|
func listPayments(ctx *cli.Context) error {
|
||||||
|
client := getClient(ctx)
|
||||||
|
|
||||||
|
req := &lnrpc.ListPaymentsRequest{}
|
||||||
|
|
||||||
|
payments, err := client.ListPayments(context.Background(), req)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
printRespJson(payments)
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
@ -66,6 +66,7 @@ func main() {
|
|||||||
ListInvoicesCommand,
|
ListInvoicesCommand,
|
||||||
ShowRoutingTableCommand,
|
ShowRoutingTableCommand,
|
||||||
ListChannelsCommand,
|
ListChannelsCommand,
|
||||||
|
ListPaymentsCommand,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := app.Run(os.Args); err != nil {
|
if err := app.Run(os.Args); err != nil {
|
||||||
|
128
lnd_test.go
128
lnd_test.go
@ -24,6 +24,8 @@ import (
|
|||||||
"github.com/roasbeef/btcutil"
|
"github.com/roasbeef/btcutil"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
"reflect"
|
||||||
|
"encoding/hex"
|
||||||
)
|
)
|
||||||
|
|
||||||
// harnessTest wraps a regular testing.T providing enhanced error detection
|
// harnessTest wraps a regular testing.T providing enhanced error detection
|
||||||
@ -491,6 +493,128 @@ func testSingleHopInvoice(net *networkHarness, t *harnessTest) {
|
|||||||
closeChannelAndAssert(t, net, ctxt, net.Alice, chanPoint, false)
|
closeChannelAndAssert(t, net, ctxt, net.Alice, chanPoint, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func testListPayments(net *networkHarness, t *harnessTest) {
|
||||||
|
ctxb := context.Background()
|
||||||
|
timeout := time.Duration(time.Second * 5)
|
||||||
|
ctxt, _ := context.WithTimeout(ctxb, timeout)
|
||||||
|
|
||||||
|
// Delete all payments from Alice. DB should have no payments
|
||||||
|
deleteAllPaymentsInitialReq := &lnrpc.DeleteAllPaymentsRequest{}
|
||||||
|
_, err := net.Alice.DeleteAllPayments(ctxt, deleteAllPaymentsInitialReq)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't delete payments at the begining: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check that there are no payments before test.
|
||||||
|
reqInit := &lnrpc.ListPaymentsRequest{}
|
||||||
|
paymentsRespInit, err := net.Alice.ListPayments(ctxt, reqInit)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("error when obtaining Alice payments: %v", err)
|
||||||
|
}
|
||||||
|
if len(paymentsRespInit.Payments) != 0 {
|
||||||
|
t.Fatalf("incorrect number of payments, got %v, want %v", len(paymentsRespInit.Payments), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open a channel with 100k satoshis between Alice and Bob with Alice being
|
||||||
|
// the sole funder of the channel.
|
||||||
|
|
||||||
|
chanAmt := btcutil.Amount(100000)
|
||||||
|
chanPoint := openChannelAndAssert(t, net, ctxt, net.Alice, net.Bob, chanAmt)
|
||||||
|
|
||||||
|
// Now that the channel is open, create an invoice for Bob which
|
||||||
|
// expects a payment of 1000 satoshis from Alice paid via a particular
|
||||||
|
// pre-image.
|
||||||
|
const paymentAmt = 1000
|
||||||
|
preimage := bytes.Repeat([]byte("B"), 32)
|
||||||
|
invoice := &lnrpc.Invoice{
|
||||||
|
Memo: "testing",
|
||||||
|
RPreimage: preimage,
|
||||||
|
Value: paymentAmt,
|
||||||
|
}
|
||||||
|
invoiceResp, err := net.Bob.AddInvoice(ctxt, invoice)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("unable to add invoice: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// With the invoice for Bob added, send a payment towards Alice paying
|
||||||
|
// to the above generated invoice.
|
||||||
|
sendStream, err := net.Alice.SendPayment(ctxt)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("unable to create alice payment stream: %v", err)
|
||||||
|
}
|
||||||
|
sendReq := &lnrpc.SendRequest{
|
||||||
|
PaymentHash: invoiceResp.RHash,
|
||||||
|
Dest: net.Bob.PubKey[:],
|
||||||
|
Amt: paymentAmt,
|
||||||
|
}
|
||||||
|
if err := sendStream.Send(sendReq); err != nil {
|
||||||
|
t.Fatalf("unable to send payment: %v", err)
|
||||||
|
}
|
||||||
|
if _, err := sendStream.Recv(); err != nil {
|
||||||
|
t.Fatalf("error when attempting recv: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// We doesn't check different states of parties
|
||||||
|
// like balance here because it is already checked in
|
||||||
|
// testSingleHopInvoice
|
||||||
|
req := &lnrpc.ListPaymentsRequest{}
|
||||||
|
paymentsResp, err := net.Alice.ListPayments(ctxt, req)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("error when obtaining Alice payments: %v", err)
|
||||||
|
}
|
||||||
|
if len(paymentsResp.Payments) != 1 {
|
||||||
|
t.Fatalf("incorrect number of payments, got %v, want %v", len(paymentsResp.Payments), 1)
|
||||||
|
}
|
||||||
|
p := paymentsResp.Payments[0]
|
||||||
|
|
||||||
|
// Check path.
|
||||||
|
expectedPath := []string {
|
||||||
|
net.Alice.PubKeyStr,
|
||||||
|
net.Bob.PubKeyStr,
|
||||||
|
}
|
||||||
|
if !reflect.DeepEqual(p.Path, expectedPath) {
|
||||||
|
t.Fatalf("incorrect path, got %v, want %v", p.Path, expectedPath)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check amount.
|
||||||
|
if p.Value != paymentAmt {
|
||||||
|
t.Fatalf("incorrect amount, got %v, want %v", p.Value, paymentAmt)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check RHash.
|
||||||
|
correctRHash := hex.EncodeToString(invoiceResp.RHash)
|
||||||
|
if !reflect.DeepEqual(p.RHash, correctRHash){
|
||||||
|
t.Fatalf("incorrect RHash, got %v, want %v", p.RHash, correctRHash)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check Fee.
|
||||||
|
// Currently there is no fees so assume value 0 for fees.
|
||||||
|
if p.Fee != 0 {
|
||||||
|
t.Fatalf("incorrect Fee, got %v, want %v", p.Fee, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete all payments from Alice. DB should have no payments.
|
||||||
|
deleteAllPaymentsEndReq := &lnrpc.DeleteAllPaymentsRequest{}
|
||||||
|
_, err = net.Alice.DeleteAllPayments(ctxt, deleteAllPaymentsEndReq)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Can't delete payments at the end: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check that there are no payments before test.
|
||||||
|
reqEnd := &lnrpc.ListPaymentsRequest{}
|
||||||
|
_, err = net.Alice.ListPayments(ctxt, reqEnd)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("error when obtaining Alice payments: %v", err)
|
||||||
|
}
|
||||||
|
if len(paymentsRespInit.Payments) != 0 {
|
||||||
|
t.Fatalf("incorrect number of payments, got %v, want %v", len(paymentsRespInit.Payments), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ctxt, _ = context.WithTimeout(ctxb, timeout)
|
||||||
|
closeChannelAndAssert(t, net, ctxt, net.Alice, chanPoint, false)
|
||||||
|
}
|
||||||
|
|
||||||
func testMultiHopPayments(net *networkHarness, t *harnessTest) {
|
func testMultiHopPayments(net *networkHarness, t *harnessTest) {
|
||||||
const chanAmt = btcutil.Amount(100000)
|
const chanAmt = btcutil.Amount(100000)
|
||||||
ctxb := context.Background()
|
ctxb := context.Background()
|
||||||
@ -1205,6 +1329,10 @@ var testsCases = []*testCase{
|
|||||||
name: "single hop invoice",
|
name: "single hop invoice",
|
||||||
test: testSingleHopInvoice,
|
test: testSingleHopInvoice,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "list of outgoing payments",
|
||||||
|
test: testListPayments,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "max pending channel",
|
name: "max pending channel",
|
||||||
test: testMaxPendingChannels,
|
test: testMaxPendingChannels,
|
||||||
|
466
lnrpc/rpc.pb.go
466
lnrpc/rpc.pb.go
@ -57,6 +57,11 @@ It has these top-level messages:
|
|||||||
ListInvoiceRequest
|
ListInvoiceRequest
|
||||||
ListInvoiceResponse
|
ListInvoiceResponse
|
||||||
InvoiceSubscription
|
InvoiceSubscription
|
||||||
|
Payment
|
||||||
|
ListPaymentsRequest
|
||||||
|
ListPaymentsResponse
|
||||||
|
DeleteAllPaymentsRequest
|
||||||
|
DeleteAllPaymentsResponse
|
||||||
*/
|
*/
|
||||||
package lnrpc
|
package lnrpc
|
||||||
|
|
||||||
@ -1685,6 +1690,94 @@ func (m *InvoiceSubscription) String() string { return proto.CompactT
|
|||||||
func (*InvoiceSubscription) ProtoMessage() {}
|
func (*InvoiceSubscription) ProtoMessage() {}
|
||||||
func (*InvoiceSubscription) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{47} }
|
func (*InvoiceSubscription) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{47} }
|
||||||
|
|
||||||
|
type Payment struct {
|
||||||
|
RHash string `protobuf:"bytes,1,opt,name=r_hash" json:"r_hash,omitempty"`
|
||||||
|
Value int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
|
||||||
|
CreationDate int64 `protobuf:"varint,3,opt,name=creation_date" json:"creation_date,omitempty"`
|
||||||
|
Path []string `protobuf:"bytes,4,rep,name=path" json:"path,omitempty"`
|
||||||
|
Fee int64 `protobuf:"varint,5,opt,name=fee" json:"fee,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Payment) Reset() { *m = Payment{} }
|
||||||
|
func (m *Payment) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*Payment) ProtoMessage() {}
|
||||||
|
func (*Payment) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{48} }
|
||||||
|
|
||||||
|
func (m *Payment) GetRHash() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.RHash
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Payment) GetValue() int64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Value
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Payment) GetCreationDate() int64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.CreationDate
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Payment) GetPath() []string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Path
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Payment) GetFee() int64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Fee
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListPaymentsRequest struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *ListPaymentsRequest) Reset() { *m = ListPaymentsRequest{} }
|
||||||
|
func (m *ListPaymentsRequest) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*ListPaymentsRequest) ProtoMessage() {}
|
||||||
|
func (*ListPaymentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{49} }
|
||||||
|
|
||||||
|
type ListPaymentsResponse struct {
|
||||||
|
Payments []*Payment `protobuf:"bytes,1,rep,name=payments" json:"payments,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *ListPaymentsResponse) Reset() { *m = ListPaymentsResponse{} }
|
||||||
|
func (m *ListPaymentsResponse) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*ListPaymentsResponse) ProtoMessage() {}
|
||||||
|
func (*ListPaymentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{50} }
|
||||||
|
|
||||||
|
func (m *ListPaymentsResponse) GetPayments() []*Payment {
|
||||||
|
if m != nil {
|
||||||
|
return m.Payments
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeleteAllPaymentsRequest struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *DeleteAllPaymentsRequest) Reset() { *m = DeleteAllPaymentsRequest{} }
|
||||||
|
func (m *DeleteAllPaymentsRequest) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*DeleteAllPaymentsRequest) ProtoMessage() {}
|
||||||
|
func (*DeleteAllPaymentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{51} }
|
||||||
|
|
||||||
|
type DeleteAllPaymentsResponse struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *DeleteAllPaymentsResponse) Reset() { *m = DeleteAllPaymentsResponse{} }
|
||||||
|
func (m *DeleteAllPaymentsResponse) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*DeleteAllPaymentsResponse) ProtoMessage() {}
|
||||||
|
func (*DeleteAllPaymentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{52} }
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*Transaction)(nil), "lnrpc.Transaction")
|
proto.RegisterType((*Transaction)(nil), "lnrpc.Transaction")
|
||||||
proto.RegisterType((*GetTransactionsRequest)(nil), "lnrpc.GetTransactionsRequest")
|
proto.RegisterType((*GetTransactionsRequest)(nil), "lnrpc.GetTransactionsRequest")
|
||||||
@ -1735,6 +1828,11 @@ func init() {
|
|||||||
proto.RegisterType((*ListInvoiceRequest)(nil), "lnrpc.ListInvoiceRequest")
|
proto.RegisterType((*ListInvoiceRequest)(nil), "lnrpc.ListInvoiceRequest")
|
||||||
proto.RegisterType((*ListInvoiceResponse)(nil), "lnrpc.ListInvoiceResponse")
|
proto.RegisterType((*ListInvoiceResponse)(nil), "lnrpc.ListInvoiceResponse")
|
||||||
proto.RegisterType((*InvoiceSubscription)(nil), "lnrpc.InvoiceSubscription")
|
proto.RegisterType((*InvoiceSubscription)(nil), "lnrpc.InvoiceSubscription")
|
||||||
|
proto.RegisterType((*Payment)(nil), "lnrpc.Payment")
|
||||||
|
proto.RegisterType((*ListPaymentsRequest)(nil), "lnrpc.ListPaymentsRequest")
|
||||||
|
proto.RegisterType((*ListPaymentsResponse)(nil), "lnrpc.ListPaymentsResponse")
|
||||||
|
proto.RegisterType((*DeleteAllPaymentsRequest)(nil), "lnrpc.DeleteAllPaymentsRequest")
|
||||||
|
proto.RegisterType((*DeleteAllPaymentsResponse)(nil), "lnrpc.DeleteAllPaymentsResponse")
|
||||||
proto.RegisterEnum("lnrpc.ChannelStatus", ChannelStatus_name, ChannelStatus_value)
|
proto.RegisterEnum("lnrpc.ChannelStatus", ChannelStatus_name, ChannelStatus_value)
|
||||||
proto.RegisterEnum("lnrpc.NewAddressRequest_AddressType", NewAddressRequest_AddressType_name, NewAddressRequest_AddressType_value)
|
proto.RegisterEnum("lnrpc.NewAddressRequest_AddressType", NewAddressRequest_AddressType_name, NewAddressRequest_AddressType_value)
|
||||||
}
|
}
|
||||||
@ -1774,6 +1872,8 @@ type LightningClient interface {
|
|||||||
LookupInvoice(ctx context.Context, in *PaymentHash, opts ...grpc.CallOption) (*Invoice, error)
|
LookupInvoice(ctx context.Context, in *PaymentHash, opts ...grpc.CallOption) (*Invoice, error)
|
||||||
SubscribeInvoices(ctx context.Context, in *InvoiceSubscription, opts ...grpc.CallOption) (Lightning_SubscribeInvoicesClient, error)
|
SubscribeInvoices(ctx context.Context, in *InvoiceSubscription, opts ...grpc.CallOption) (Lightning_SubscribeInvoicesClient, error)
|
||||||
ShowRoutingTable(ctx context.Context, in *ShowRoutingTableRequest, opts ...grpc.CallOption) (*ShowRoutingTableResponse, error)
|
ShowRoutingTable(ctx context.Context, in *ShowRoutingTableRequest, opts ...grpc.CallOption) (*ShowRoutingTableResponse, error)
|
||||||
|
ListPayments(ctx context.Context, in *ListPaymentsRequest, opts ...grpc.CallOption) (*ListPaymentsResponse, error)
|
||||||
|
DeleteAllPayments(ctx context.Context, in *DeleteAllPaymentsRequest, opts ...grpc.CallOption) (*DeleteAllPaymentsResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type lightningClient struct {
|
type lightningClient struct {
|
||||||
@ -2105,6 +2205,24 @@ func (c *lightningClient) ShowRoutingTable(ctx context.Context, in *ShowRoutingT
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *lightningClient) ListPayments(ctx context.Context, in *ListPaymentsRequest, opts ...grpc.CallOption) (*ListPaymentsResponse, error) {
|
||||||
|
out := new(ListPaymentsResponse)
|
||||||
|
err := grpc.Invoke(ctx, "/lnrpc.Lightning/ListPayments", in, out, c.cc, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *lightningClient) DeleteAllPayments(ctx context.Context, in *DeleteAllPaymentsRequest, opts ...grpc.CallOption) (*DeleteAllPaymentsResponse, error) {
|
||||||
|
out := new(DeleteAllPaymentsResponse)
|
||||||
|
err := grpc.Invoke(ctx, "/lnrpc.Lightning/DeleteAllPayments", in, out, c.cc, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
// Server API for Lightning service
|
// Server API for Lightning service
|
||||||
|
|
||||||
type LightningServer interface {
|
type LightningServer interface {
|
||||||
@ -2132,6 +2250,8 @@ type LightningServer interface {
|
|||||||
LookupInvoice(context.Context, *PaymentHash) (*Invoice, error)
|
LookupInvoice(context.Context, *PaymentHash) (*Invoice, error)
|
||||||
SubscribeInvoices(*InvoiceSubscription, Lightning_SubscribeInvoicesServer) error
|
SubscribeInvoices(*InvoiceSubscription, Lightning_SubscribeInvoicesServer) error
|
||||||
ShowRoutingTable(context.Context, *ShowRoutingTableRequest) (*ShowRoutingTableResponse, error)
|
ShowRoutingTable(context.Context, *ShowRoutingTableRequest) (*ShowRoutingTableResponse, error)
|
||||||
|
ListPayments(context.Context, *ListPaymentsRequest) (*ListPaymentsResponse, error)
|
||||||
|
DeleteAllPayments(context.Context, *DeleteAllPaymentsRequest) (*DeleteAllPaymentsResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterLightningServer(s *grpc.Server, srv LightningServer) {
|
func RegisterLightningServer(s *grpc.Server, srv LightningServer) {
|
||||||
@ -2572,6 +2692,42 @@ func _Lightning_ShowRoutingTable_Handler(srv interface{}, ctx context.Context, d
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func _Lightning_ListPayments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ListPaymentsRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(LightningServer).ListPayments(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/lnrpc.Lightning/ListPayments",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(LightningServer).ListPayments(ctx, req.(*ListPaymentsRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Lightning_DeleteAllPayments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DeleteAllPaymentsRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(LightningServer).DeleteAllPayments(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/lnrpc.Lightning/DeleteAllPayments",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(LightningServer).DeleteAllPayments(ctx, req.(*DeleteAllPaymentsRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
var _Lightning_serviceDesc = grpc.ServiceDesc{
|
var _Lightning_serviceDesc = grpc.ServiceDesc{
|
||||||
ServiceName: "lnrpc.Lightning",
|
ServiceName: "lnrpc.Lightning",
|
||||||
HandlerType: (*LightningServer)(nil),
|
HandlerType: (*LightningServer)(nil),
|
||||||
@ -2648,6 +2804,14 @@ var _Lightning_serviceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "ShowRoutingTable",
|
MethodName: "ShowRoutingTable",
|
||||||
Handler: _Lightning_ShowRoutingTable_Handler,
|
Handler: _Lightning_ShowRoutingTable_Handler,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MethodName: "ListPayments",
|
||||||
|
Handler: _Lightning_ListPayments_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "DeleteAllPayments",
|
||||||
|
Handler: _Lightning_DeleteAllPayments_Handler,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{
|
Streams: []grpc.StreamDesc{
|
||||||
{
|
{
|
||||||
@ -2683,152 +2847,158 @@ var _Lightning_serviceDesc = grpc.ServiceDesc{
|
|||||||
func init() { proto.RegisterFile("rpc.proto", fileDescriptor0) }
|
func init() { proto.RegisterFile("rpc.proto", fileDescriptor0) }
|
||||||
|
|
||||||
var fileDescriptor0 = []byte{
|
var fileDescriptor0 = []byte{
|
||||||
// 2338 bytes of a gzipped FileDescriptorProto
|
// 2445 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x6f, 0x1c, 0x49,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x59, 0xcb, 0x6f, 0xdc, 0xc6,
|
||||||
0x1d, 0x4f, 0x7b, 0x3c, 0xf6, 0xcc, 0x7f, 0xde, 0x35, 0x4f, 0x8f, 0x93, 0x8d, 0xb7, 0xc8, 0xae,
|
0x19, 0x37, 0xb5, 0x92, 0x76, 0xf7, 0xdb, 0xf7, 0xec, 0x53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xab, 0xec, 0xf7, 0xb5, 0x76, 0xd9, 0xc0,
|
0x20, 0xf0, 0x7d, 0xec, 0xd0, 0x53, 0x8c, 0x23, 0x65, 0xdd, 0x87, 0x9a, 0xd3, 0x2a, 0x7b, 0x7d,
|
||||||
0xc1, 0x1f, 0x42, 0x3b, 0xf5, 0x38, 0x61, 0x12, 0x10, 0x12, 0x8e, 0xb5, 0x09, 0x8b, 0x38, 0x80,
|
0x69, 0x5d, 0x36, 0x71, 0xac, 0x8f, 0xa0, 0x9d, 0x7a, 0x9c, 0x08, 0x09, 0x31, 0x8e, 0x46, 0xd2,
|
||||||
0xd5, 0xe3, 0xf3, 0x93, 0x43, 0xd4, 0x84, 0x92, 0x4b, 0x1d, 0x7f, 0x26, 0xf2, 0x40, 0x9c, 0x94,
|
0x85, 0x2b, 0x56, 0x08, 0xcb, 0x47, 0x67, 0xc7, 0x07, 0xa8, 0x09, 0x25, 0xd7, 0x77, 0x82, 0x29,
|
||||||
0xb2, 0xfe, 0x10, 0x79, 0x21, 0x93, 0x45, 0x94, 0x09, 0x19, 0xb1, 0x55, 0x51, 0x64, 0xc8, 0xab,
|
0xab, 0x03, 0x76, 0x52, 0xca, 0xc6, 0x83, 0xd5, 0x05, 0x2f, 0x16, 0xd6, 0x26, 0x78, 0xc6, 0x56,
|
||||||
0xc0, 0x0d, 0x65, 0x79, 0x89, 0x4a, 0x87, 0x48, 0xb1, 0x9a, 0x08, 0xfe, 0x90, 0x5c, 0xfb, 0x8e,
|
0x59, 0x93, 0xc1, 0x6f, 0x42, 0x37, 0xe2, 0xed, 0x45, 0xb5, 0x0e, 0x56, 0x62, 0x35, 0x96, 0xfc,
|
||||||
0x3a, 0x9a, 0x10, 0xcf, 0x5e, 0xc8, 0xfc, 0xaa, 0xe1, 0xdf, 0xad, 0x40, 0xed, 0xc0, 0xe1, 0xee,
|
0x11, 0xbe, 0x0a, 0x1c, 0x71, 0x34, 0xc6, 0x9e, 0x3d, 0xe7, 0xf5, 0x55, 0x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x0c, 0x89, 0x43, 0xdc, 0x6b,
|
0x88, 0x4d, 0x03, 0x72, 0xe9, 0x12, 0xd6, 0x05, 0xa8, 0xe8, 0x72, 0xe8, 0x1e, 0xf4, 0x33, 0x87,
|
||||||
0x32, 0x19, 0x94, 0xe4, 0x85, 0x36, 0x54, 0x44, 0xcd, 0x9d, 0x07, 0x13, 0x9b, 0x13, 0x36, 0x28,
|
0x11, 0x76, 0xb0, 0x7b, 0x85, 0xc7, 0x83, 0x12, 0xbf, 0xd0, 0x86, 0x0a, 0xeb, 0xb9, 0xb3, 0x70,
|
||||||
0x6f, 0x59, 0xdb, 0xab, 0x08, 0x43, 0x2d, 0x20, 0xaa, 0x0a, 0x5c, 0x71, 0xcf, 0x61, 0x03, 0x90,
|
0x6c, 0x53, 0x4c, 0x06, 0xe5, 0x0d, 0x63, 0x73, 0x19, 0x59, 0x50, 0x0b, 0xb1, 0xe8, 0x02, 0x97,
|
||||||
0x09, 0x59, 0xd1, 0x8e, 0x13, 0xc6, 0xc7, 0x5d, 0x68, 0x9f, 0xb8, 0x8c, 0x6b, 0x7b, 0x18, 0xc5,
|
0xd4, 0x73, 0xc8, 0x00, 0x78, 0x41, 0x56, 0x64, 0xe0, 0x98, 0xf3, 0xad, 0x2e, 0xb4, 0x8f, 0x5d,
|
||||||
0xb3, 0x93, 0x26, 0x6b, 0x27, 0x7e, 0x08, 0x25, 0x6d, 0x18, 0x36, 0xa8, 0x48, 0xb4, 0x8e, 0x46,
|
0x42, 0xa5, 0x3f, 0xb4, 0xe6, 0xd9, 0x49, 0x93, 0x65, 0x10, 0x3f, 0x82, 0x92, 0x74, 0x0c, 0x19,
|
||||||
0x4b, 0xd9, 0x15, 0xff, 0xc1, 0x82, 0x55, 0xe1, 0x7d, 0xe9, 0xf5, 0xf9, 0xc5, 0x38, 0x31, 0xad,
|
0x54, 0x38, 0xb7, 0x8e, 0xe4, 0x96, 0xf2, 0xab, 0xf5, 0x47, 0x03, 0x96, 0x59, 0xf4, 0x79, 0xd4,
|
||||||
0x11, 0x06, 0x2b, 0xb2, 0xd2, 0x1b, 0xc1, 0x57, 0x90, 0x37, 0x44, 0x93, 0x58, 0x70, 0xa2, 0x0d,
|
0x67, 0xe7, 0xa3, 0xc4, 0xb5, 0x5a, 0x1a, 0x2c, 0xf1, 0x4e, 0xaf, 0x25, 0x5f, 0x81, 0xdf, 0x60,
|
||||||
0xb0, 0x2a, 0x55, 0x89, 0x69, 0x21, 0x71, 0xae, 0xa5, 0x31, 0x57, 0x85, 0x37, 0x98, 0xcd, 0xd5,
|
0x43, 0x62, 0x4e, 0xb1, 0x74, 0xc0, 0x32, 0x37, 0x25, 0xa6, 0x45, 0xd8, 0xb9, 0xe2, 0xce, 0x5c,
|
||||||
0x2d, 0x65, 0x43, 0x4d, 0x91, 0x77, 0x94, 0xe1, 0x1a, 0xb0, 0xee, 0xd2, 0x0b, 0x7f, 0x4e, 0x95,
|
0x66, 0xd1, 0x20, 0x36, 0x15, 0xb7, 0x84, 0x0f, 0x25, 0x85, 0xdf, 0x11, 0x8e, 0x6b, 0x40, 0xd1,
|
||||||
0xa1, 0x4a, 0x18, 0x89, 0x4a, 0xc7, 0x64, 0x64, 0xc6, 0xca, 0xee, 0x42, 0xcb, 0xa0, 0x69, 0x4d,
|
0xf5, 0xcf, 0x83, 0x99, 0x2f, 0x1c, 0x55, 0xb2, 0x10, 0xeb, 0x74, 0x84, 0x67, 0x66, 0x6c, 0xec,
|
||||||
0x87, 0x50, 0x14, 0x72, 0x46, 0x1d, 0x22, 0x32, 0x9a, 0xb8, 0x84, 0x9b, 0x50, 0x7f, 0x42, 0xf8,
|
0x0e, 0xb4, 0x34, 0x9a, 0xb4, 0xd4, 0x84, 0x15, 0xa6, 0xa7, 0x9a, 0x10, 0xca, 0x69, 0xec, 0x92,
|
||||||
0x53, 0x7a, 0xe9, 0x47, 0x10, 0x7f, 0xb7, 0xa0, 0x11, 0x93, 0x34, 0x42, 0x1f, 0x1a, 0xee, 0x84,
|
0xd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, 0xe7, 0x4e, 0x5d, 0xd5, 0x88, 0x6a, 0xb0, 0x72, 0x11, 0x44, 0x0e, 0xe6, 0x36, 0x96,
|
||||||
0x23, 0x6e, 0xf3, 0x39, 0xd3, 0x22, 0x7e, 0x0c, 0x35, 0x21, 0x22, 0x89, 0x1c, 0xac, 0x99, 0x74,
|
0xac, 0x7f, 0x18, 0xd0, 0xe2, 0x62, 0x86, 0xd4, 0xa6, 0x33, 0x22, 0x55, 0xfc, 0x04, 0x6a, 0x4c,
|
||||||
0xe2, 0x08, 0x92, 0x54, 0x75, 0xf9, 0xf8, 0x16, 0x7a, 0x08, 0x55, 0x73, 0x54, 0x92, 0x9c, 0x2a,
|
0x45, 0xac, 0x02, 0x2c, 0x85, 0x74, 0xe2, 0x0c, 0xe2, 0x54, 0x71, 0xf9, 0xe8, 0x16, 0x7a, 0x08,
|
||||||
0xfb, 0x1b, 0x91, 0x48, 0x4b, 0xae, 0x39, 0xbe, 0x85, 0x76, 0x01, 0x84, 0x1a, 0x63, 0xc9, 0x46,
|
0x55, 0x1d, 0x2a, 0x71, 0x49, 0x95, 0xbd, 0x35, 0xa5, 0xd2, 0x42, 0x68, 0x8e, 0x6e, 0xa1, 0x1d,
|
||||||
0xca, 0x62, 0x3c, 0x58, 0xb2, 0xd9, 0xf1, 0xad, 0xc7, 0x25, 0x58, 0x53, 0xa5, 0x01, 0xdf, 0x81,
|
0x00, 0x66, 0xc6, 0x88, 0x8b, 0xe1, 0xba, 0x68, 0x0f, 0x16, 0x7c, 0x76, 0x74, 0xeb, 0x71, 0x09,
|
||||||
0x5a, 0x4a, 0x80, 0x54, 0x5b, 0xab, 0xe2, 0x7f, 0x58, 0x80, 0x84, 0xbf, 0x32, 0x76, 0xeb, 0x41,
|
0x56, 0x45, 0x6b, 0xb0, 0xee, 0x40, 0x2d, 0xa5, 0x40, 0x6a, 0xac, 0x55, 0xad, 0x7f, 0x19, 0x80,
|
||||||
0x9d, 0xdb, 0xe1, 0x94, 0xf0, 0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, 0xae, 0xb8, 0x57, 0x72, 0x6c, 0x18,
|
0xf0, 0x7a, 0x16, 0x2a, 0x03, 0x50, 0x7a, 0xb0, 0x33, 0xa4, 0x64, 0x66, 0x01, 0xcb, 0x07, 0x9c,
|
||||||
0x00, 0x00,
|
0xf3, 0x3a, 0x5a, 0x4b, 0x73, 0x4e, 0xd0, 0xd4, 0x3b, 0x64, 0x43, 0x2b, 0xee, 0xfb, 0xb1, 0x21,
|
||||||
|
0x66, 0x9a, 0x8f, 0x8e, 0x76, 0x16, 0x64, 0xa4, 0x26, 0x71, 0x2c, 0x83, 0x28, 0x9e, 0xbb, 0x06,
|
||||||
|
0x1a, 0x42, 0x33, 0x0b, 0x6b, 0xd1, 0x5d, 0x15, 0xc7, 0x7c, 0x28, 0x6c, 0xde, 0xbb, 0xf1, 0x5c,
|
||||||
|
0x76, 0x78, 0xd9, 0x0c, 0x14, 0x4c, 0x49, 0x35, 0x83, 0x0c, 0xae, 0x49, 0x35, 0x83, 0x2c, 0xae,
|
||||||
|
0x49, 0x37, 0x03, 0x05, 0x9e, 0x90, 0x07, 0xad, 0x05, 0x28, 0x14, 0x0f, 0x90, 0x9b, 0x00, 0x94,
|
||||||
|
0xb9, 0x71, 0xf3, 0x85, 0xb4, 0xb4, 0xad, 0x94, 0xb4, 0xf3, 0x55, 0xfe, 0xdf, 0x9e, 0x4f, 0xff,
|
||||||
|
0x17, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x2f, 0x7f, 0x12, 0x1f, 0x1a, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
@ -324,6 +324,24 @@ func request_Lightning_SubscribeInvoices_0(ctx context.Context, marshaler runtim
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func request_Lightning_ListPayments_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||||
|
var protoReq ListPaymentsRequest
|
||||||
|
var metadata runtime.ServerMetadata
|
||||||
|
|
||||||
|
msg, err := client.ListPayments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||||
|
return msg, metadata, err
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func request_Lightning_DeleteAllPayments_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||||
|
var protoReq DeleteAllPaymentsRequest
|
||||||
|
var metadata runtime.ServerMetadata
|
||||||
|
|
||||||
|
msg, err := client.DeleteAllPayments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||||
|
return msg, metadata, err
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// RegisterLightningHandlerFromEndpoint is same as RegisterLightningHandler but
|
// RegisterLightningHandlerFromEndpoint is same as RegisterLightningHandler but
|
||||||
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
|
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
|
||||||
func RegisterLightningHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
|
func RegisterLightningHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
|
||||||
@ -830,6 +848,62 @@ func RegisterLightningHandler(ctx context.Context, mux *runtime.ServeMux, conn *
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
mux.Handle("GET", pattern_Lightning_ListPayments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
|
ctx, cancel := context.WithCancel(ctx)
|
||||||
|
defer cancel()
|
||||||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||||||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||||||
|
select {
|
||||||
|
case <-done:
|
||||||
|
case <-closed:
|
||||||
|
cancel()
|
||||||
|
}
|
||||||
|
}(ctx.Done(), cn.CloseNotify())
|
||||||
|
}
|
||||||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||||
|
rctx, err := runtime.AnnotateContext(ctx, req)
|
||||||
|
if err != nil {
|
||||||
|
runtime.HTTPError(ctx, outboundMarshaler, w, req, err)
|
||||||
|
}
|
||||||
|
resp, md, err := request_Lightning_ListPayments_0(rctx, inboundMarshaler, client, req, pathParams)
|
||||||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||||
|
if err != nil {
|
||||||
|
runtime.HTTPError(ctx, outboundMarshaler, w, req, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
forward_Lightning_ListPayments_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
mux.Handle("DELETE", pattern_Lightning_DeleteAllPayments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||||
|
ctx, cancel := context.WithCancel(ctx)
|
||||||
|
defer cancel()
|
||||||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||||||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||||||
|
select {
|
||||||
|
case <-done:
|
||||||
|
case <-closed:
|
||||||
|
cancel()
|
||||||
|
}
|
||||||
|
}(ctx.Done(), cn.CloseNotify())
|
||||||
|
}
|
||||||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||||
|
rctx, err := runtime.AnnotateContext(ctx, req)
|
||||||
|
if err != nil {
|
||||||
|
runtime.HTTPError(ctx, outboundMarshaler, w, req, err)
|
||||||
|
}
|
||||||
|
resp, md, err := request_Lightning_DeleteAllPayments_0(rctx, inboundMarshaler, client, req, pathParams)
|
||||||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||||||
|
if err != nil {
|
||||||
|
runtime.HTTPError(ctx, outboundMarshaler, w, req, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
forward_Lightning_DeleteAllPayments_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -867,6 +941,10 @@ var (
|
|||||||
pattern_Lightning_LookupInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "invoices", "r_hash_str"}, ""))
|
pattern_Lightning_LookupInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "invoices", "r_hash_str"}, ""))
|
||||||
|
|
||||||
pattern_Lightning_SubscribeInvoices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "invoices", "subscribe"}, ""))
|
pattern_Lightning_SubscribeInvoices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "invoices", "subscribe"}, ""))
|
||||||
|
|
||||||
|
pattern_Lightning_ListPayments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "payments"}, ""))
|
||||||
|
|
||||||
|
pattern_Lightning_DeleteAllPayments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "payments"}, ""))
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -903,4 +981,8 @@ var (
|
|||||||
forward_Lightning_LookupInvoice_0 = runtime.ForwardResponseMessage
|
forward_Lightning_LookupInvoice_0 = runtime.ForwardResponseMessage
|
||||||
|
|
||||||
forward_Lightning_SubscribeInvoices_0 = runtime.ForwardResponseStream
|
forward_Lightning_SubscribeInvoices_0 = runtime.ForwardResponseStream
|
||||||
|
|
||||||
|
forward_Lightning_ListPayments_0 = runtime.ForwardResponseMessage
|
||||||
|
|
||||||
|
forward_Lightning_DeleteAllPayments_0 = runtime.ForwardResponseMessage
|
||||||
)
|
)
|
||||||
|
@ -113,6 +113,18 @@ service Lightning {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rpc ShowRoutingTable(ShowRoutingTableRequest) returns (ShowRoutingTableResponse);
|
rpc ShowRoutingTable(ShowRoutingTableRequest) returns (ShowRoutingTableResponse);
|
||||||
|
|
||||||
|
rpc ListPayments(ListPaymentsRequest) returns (ListPaymentsResponse){
|
||||||
|
option (google.api.http) = {
|
||||||
|
get: "/v1/payments"
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
rpc DeleteAllPayments(DeleteAllPaymentsRequest) returns (DeleteAllPaymentsResponse) {
|
||||||
|
option (google.api.http) = {
|
||||||
|
delete: "/v1/payments"
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -396,3 +408,27 @@ message ListInvoiceResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message InvoiceSubscription {}
|
message InvoiceSubscription {}
|
||||||
|
|
||||||
|
|
||||||
|
message Payment {
|
||||||
|
string r_hash = 1;
|
||||||
|
|
||||||
|
int64 value = 2;
|
||||||
|
|
||||||
|
int64 creation_date = 3;
|
||||||
|
repeated string path = 4;
|
||||||
|
int64 fee = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ListPaymentsRequest {
|
||||||
|
}
|
||||||
|
|
||||||
|
message ListPaymentsResponse {
|
||||||
|
repeated Payment payments = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message DeleteAllPaymentsRequest {
|
||||||
|
}
|
||||||
|
|
||||||
|
message DeleteAllPaymentsResponse {
|
||||||
|
}
|
@ -293,6 +293,36 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/v1/payments": {
|
||||||
|
"get": {
|
||||||
|
"operationId": "ListPayments",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/lnrpcListPaymentsResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"Lightning"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"operationId": "DeleteAllPayments",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/lnrpcDeleteAllPaymentsResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"Lightning"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/v1/peers": {
|
"/v1/peers": {
|
||||||
"get": {
|
"get": {
|
||||||
"operationId": "ListPeers",
|
"operationId": "ListPeers",
|
||||||
@ -582,6 +612,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"lnrpcDeleteAllPaymentsRequest": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"lnrpcDeleteAllPaymentsResponse": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"lnrpcGetInfoRequest": {
|
"lnrpcGetInfoRequest": {
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
@ -733,6 +769,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"lnrpcListPaymentsRequest": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"lnrpcListPaymentsResponse": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"payments": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/lnrpcPayment"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"lnrpcListPeersRequest": {
|
"lnrpcListPeersRequest": {
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
@ -792,6 +842,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"lnrpcPayment": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"creation_date": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "int64"
|
||||||
|
},
|
||||||
|
"fee": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "int64"
|
||||||
|
},
|
||||||
|
"path": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"r_hash": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "string"
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "int64"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"lnrpcPaymentHash": {
|
"lnrpcPaymentHash": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
77
rpcserver.go
77
rpcserver.go
@ -597,6 +597,19 @@ func (r *rpcServer) ListChannels(ctx context.Context,
|
|||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func constructPayment(path []graph.Vertex, amount btcutil.Amount, rHash []byte) *channeldb.OutgoingPayment {
|
||||||
|
payment := &channeldb.OutgoingPayment{}
|
||||||
|
copy(payment.RHash[:], rHash)
|
||||||
|
payment.Invoice.Terms.Value = btcutil.Amount(amount)
|
||||||
|
payment.Invoice.CreationDate = time.Now()
|
||||||
|
pathBytes := make([][]byte, len(path))
|
||||||
|
for i:=0; i<len(path); i++ {
|
||||||
|
pathBytes[i] = path[i].ToByte()
|
||||||
|
}
|
||||||
|
payment.Path = pathBytes
|
||||||
|
return payment
|
||||||
|
}
|
||||||
|
|
||||||
// SendPayment dispatches a bi-directional streaming RPC for sending payments
|
// SendPayment dispatches a bi-directional streaming RPC for sending payments
|
||||||
// through the Lightning Network. A single RPC invocation creates a persistent
|
// through the Lightning Network. A single RPC invocation creates a persistent
|
||||||
// bi-directional stream allowing clients to rapidly send payments through the
|
// bi-directional stream allowing clients to rapidly send payments through the
|
||||||
@ -641,13 +654,6 @@ func (r *rpcServer) SendPayment(paymentStream lnrpc.Lightning_SendPaymentServer)
|
|||||||
// Query the routing table for a potential path to the
|
// Query the routing table for a potential path to the
|
||||||
// destination node. If a path is ultimately
|
// destination node. If a path is ultimately
|
||||||
// unavailable, then an error will be returned.
|
// unavailable, then an error will be returned.
|
||||||
destNode := nextPayment.Dest
|
|
||||||
targetVertex := graph.NewVertex(destNode)
|
|
||||||
path, err := r.server.routingMgr.FindPath(targetVertex)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
rpcsLog.Tracef("[sendpayment] selected route: %v", path)
|
|
||||||
// If we're in debug HTLC mode, then all outgoing
|
// If we're in debug HTLC mode, then all outgoing
|
||||||
// HTLC's will pay to the same debug rHash. Otherwise,
|
// HTLC's will pay to the same debug rHash. Otherwise,
|
||||||
// we pay to the rHash specified within the RPC
|
// we pay to the rHash specified within the RPC
|
||||||
@ -661,11 +667,12 @@ func (r *rpcServer) SendPayment(paymentStream lnrpc.Lightning_SendPaymentServer)
|
|||||||
// Construct and HTLC packet which a payment route (if
|
// Construct and HTLC packet which a payment route (if
|
||||||
// one is found) to the destination using a Sphinx
|
// one is found) to the destination using a Sphinx
|
||||||
// onoin packet to encode the route.
|
// onoin packet to encode the route.
|
||||||
htlcPkt, err := r.constructPaymentRoute([]byte(nextPayment.Dest),
|
htlcPkt, path, err := r.constructPaymentRoute([]byte(nextPayment.Dest),
|
||||||
nextPayment.Amt, rHash)
|
nextPayment.Amt, rHash)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
rpcsLog.Tracef("[sendpayment] selected route: %v", path)
|
||||||
// We launch a new goroutine to execute the current
|
// We launch a new goroutine to execute the current
|
||||||
// payment so we can continue to serve requests while
|
// payment so we can continue to serve requests while
|
||||||
// this payment is being dispatiched.
|
// this payment is being dispatiched.
|
||||||
@ -680,7 +687,9 @@ func (r *rpcServer) SendPayment(paymentStream lnrpc.Lightning_SendPaymentServer)
|
|||||||
errChan <- err
|
errChan <- err
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// Save payment to DB.
|
||||||
|
payment := constructPayment(path, btcutil.Amount(nextPayment.Amt), rHash[:])
|
||||||
|
r.server.chanDB.AddPayment(payment)
|
||||||
// TODO(roasbeef): proper responses
|
// TODO(roasbeef): proper responses
|
||||||
resp := &lnrpc.SendResponse{}
|
resp := &lnrpc.SendResponse{}
|
||||||
if err := paymentStream.Send(resp); err != nil {
|
if err := paymentStream.Send(resp); err != nil {
|
||||||
@ -719,7 +728,7 @@ func (r *rpcServer) SendPaymentSync(ctx context.Context,
|
|||||||
// Construct and HTLC packet which a payment route (if
|
// Construct and HTLC packet which a payment route (if
|
||||||
// one is found) to the destination using a Sphinx
|
// one is found) to the destination using a Sphinx
|
||||||
// onoin packet to encode the route.
|
// onoin packet to encode the route.
|
||||||
htlcPkt, err := r.constructPaymentRoute([]byte(nextPayment.DestString),
|
htlcPkt, path, err := r.constructPaymentRoute([]byte(nextPayment.DestString),
|
||||||
nextPayment.Amt, rHash)
|
nextPayment.Amt, rHash)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -730,7 +739,8 @@ func (r *rpcServer) SendPaymentSync(ctx context.Context,
|
|||||||
if err := r.server.htlcSwitch.SendHTLC(htlcPkt); err != nil {
|
if err := r.server.htlcSwitch.SendHTLC(htlcPkt); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
payment := constructPayment(path, btcutil.Amount(nextPayment.Amt), rHash[:])
|
||||||
|
r.server.chanDB.AddPayment(payment)
|
||||||
return &lnrpc.SendResponse{}, nil
|
return &lnrpc.SendResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -739,7 +749,7 @@ func (r *rpcServer) SendPaymentSync(ctx context.Context,
|
|||||||
// payment instructions necessary to complete an HTLC. If a route is unable to
|
// payment instructions necessary to complete an HTLC. If a route is unable to
|
||||||
// be located, then an error is returned indicating as much.
|
// be located, then an error is returned indicating as much.
|
||||||
func (r *rpcServer) constructPaymentRoute(destPubkey []byte, amt int64,
|
func (r *rpcServer) constructPaymentRoute(destPubkey []byte, amt int64,
|
||||||
rHash [32]byte) (*htlcPacket, error) {
|
rHash [32]byte) (*htlcPacket, []graph.Vertex, error) {
|
||||||
|
|
||||||
const queryTimeout = time.Duration(time.Second * 10)
|
const queryTimeout = time.Duration(time.Second * 10)
|
||||||
|
|
||||||
@ -749,7 +759,7 @@ func (r *rpcServer) constructPaymentRoute(destPubkey []byte, amt int64,
|
|||||||
targetVertex := graph.NewVertex(destPubkey)
|
targetVertex := graph.NewVertex(destPubkey)
|
||||||
path, err := r.server.routingMgr.FindPath(targetVertex)
|
path, err := r.server.routingMgr.FindPath(targetVertex)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
rpcsLog.Tracef("[sendpayment] selected route: %v", path)
|
rpcsLog.Tracef("[sendpayment] selected route: %v", path)
|
||||||
|
|
||||||
@ -758,7 +768,7 @@ func (r *rpcServer) constructPaymentRoute(destPubkey []byte, amt int64,
|
|||||||
// the routing table's star graph, we're always the first hop.
|
// the routing table's star graph, we're always the first hop.
|
||||||
sphinxPacket, err := generateSphinxPacket(path[1:], rHash[:])
|
sphinxPacket, err := generateSphinxPacket(path[1:], rHash[:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Craft an HTLC packet to send to the routing sub-system. The
|
// Craft an HTLC packet to send to the routing sub-system. The
|
||||||
@ -776,7 +786,7 @@ func (r *rpcServer) constructPaymentRoute(destPubkey []byte, amt int64,
|
|||||||
return &htlcPacket{
|
return &htlcPacket{
|
||||||
dest: destInterface,
|
dest: destInterface,
|
||||||
msg: htlcAdd,
|
msg: htlcAdd,
|
||||||
}, nil
|
}, path, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// generateSphinxPacket generates then encodes a sphinx packet which encodes
|
// generateSphinxPacket generates then encodes a sphinx packet which encodes
|
||||||
@ -1121,3 +1131,40 @@ func (r *rpcServer) ShowRoutingTable(ctx context.Context,
|
|||||||
Channels: channels,
|
Channels: channels,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ListPayments returns a list of all outgoing payments.
|
||||||
|
func (r *rpcServer) ListPayments(context.Context,
|
||||||
|
*lnrpc.ListPaymentsRequest) (*lnrpc.ListPaymentsResponse, error) {
|
||||||
|
rpcsLog.Debugf("[ListPayments]")
|
||||||
|
payments, err := r.server.chanDB.FetchAllPayments()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
paymentsResp := &lnrpc.ListPaymentsResponse{
|
||||||
|
Payments: make([]*lnrpc.Payment, len(payments)),
|
||||||
|
}
|
||||||
|
for i:=0; i<len(payments); i++{
|
||||||
|
p := &lnrpc.Payment{}
|
||||||
|
p.CreationDate = payments[i].CreationDate.Unix()
|
||||||
|
p.Value = int64(payments[i].Terms.Value)
|
||||||
|
p.RHash = hex.EncodeToString(payments[i].RHash[:])
|
||||||
|
path := make([]string, len(payments[i].Path))
|
||||||
|
for j:=0; j<len(path); j++ {
|
||||||
|
path[j] = hex.EncodeToString(payments[i].Path[j])
|
||||||
|
}
|
||||||
|
p.Path = path
|
||||||
|
paymentsResp.Payments[i] = p
|
||||||
|
}
|
||||||
|
|
||||||
|
return paymentsResp, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeleteAllPayments deletes all outgoing payments from DB.
|
||||||
|
func (r *rpcServer) DeleteAllPayments(context.Context,
|
||||||
|
*lnrpc.DeleteAllPaymentsRequest) (*lnrpc.DeleteAllPaymentsResponse, error) {
|
||||||
|
rpcsLog.Debugf("[DeleteAllPayments]")
|
||||||
|
err := r.server.chanDB.DeleteAllPayments()
|
||||||
|
resp := &lnrpc.DeleteAllPaymentsResponse{}
|
||||||
|
return resp, err
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user