mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 19:16:20 +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:
@@ -111,11 +111,11 @@ func createChannelDB(dbPath string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if _, err := tx.CreateBucket(channelLogBucket); err != nil {
|
||||
if _, err := tx.CreateBucket(invoiceBucket); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if _, err := tx.CreateBucket(invoiceBucket); err != nil {
|
||||
if _, err := tx.CreateBucket(nodeInfoBucket); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user