channeldb: add bucket for storing p2p counterparty meta-data

This commit adds a new bucket to the database which is dedicated to
storing data pertaining to p2p related reachability for direct channel
counter parties. The data stored in this new bucket can be used within
heuristics when deciding to unilaterally close a channel due to
inactivity. Additionally, all known reachable IP addresses for a
particular LinkNode are to be stored and updated within the database in
order to facilitate the establishment of persistent connections to
direct channel counter parties.
This commit is contained in:
Olaoluwa Osuntokun
2016-10-25 14:04:42 -07:00
parent d181aad8e2
commit d109bd9298
4 changed files with 393 additions and 2 deletions

View File

@@ -12,4 +12,6 @@ var (
ErrInvoiceNotFound = fmt.Errorf("unable to locate invoice")
ErrNoInvoicesCreated = fmt.Errorf("there are no existing invoices")
ErrDuplicateInvoice = fmt.Errorf("invoice with payment hash already exists")
ErrNodeNotFound = fmt.Errorf("link node with target identity not found")
)