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
2016-12-05 06:59:36 -05:00
committed by Olaoluwa Osuntokun
parent 343cd7779f
commit eb4d0e035e
12 changed files with 1117 additions and 168 deletions

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")