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:
BitfuryLightning authored and Olaoluwa Osuntokun committed 2016-12-27 16:16:23 -08:00
1 parent 343cd7779f
commit eb4d0e035e
12 files changed
+1117 -168

No files matched your search

+2
View File
@@ -14,6 +14,8 @@ var (
ErrNoInvoicesCreated = fmt.Errorf("there are no existing invoices")
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")
ErrMetaNotFound = fmt.Errorf("unable to locate meta information")