mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-04 19:24:04 +02:00
channeldb: add zombie edge index
In this commit, we add a zombie edge index to the database. This allows us to quickly determine across restarts whether we're attempting to process an edge we've previously deemed as zombie.
This commit is contained in:
@@ -268,6 +268,9 @@ func createChannelDB(dbPath string) error {
|
||||
if _, err := edges.CreateBucket(channelPointBucket); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := edges.CreateBucket(zombieBucket); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
graphMeta, err := tx.CreateBucket(graphMetaBucket)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user