mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 20:15:18 +02:00
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:
@@ -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")
|
||||
)
|
||||
|
Reference in New Issue
Block a user