channeldb/migration: remove old forwarding packages

This commit is contained in:
yyforyongyu committed 2021-09-23 13:22:34 +08:00
1 parent d8c48fa3a5
commit c74c1d0f51
5 files changed
+437

No files matched your search

+6
View File
@@ -18,6 +18,7 @@ import (
"github.com/lightningnetwork/lnd/channeldb/migration20"
"github.com/lightningnetwork/lnd/channeldb/migration21"
"github.com/lightningnetwork/lnd/channeldb/migration23"
"github.com/lightningnetwork/lnd/channeldb/migration24"
"github.com/lightningnetwork/lnd/channeldb/migration_01_to_11"
"github.com/lightningnetwork/lnd/clock"
"github.com/lightningnetwork/lnd/kvdb"
@@ -198,6 +199,11 @@ var (
number: 23,
migration: migration23.MigrateHtlcAttempts,
},
{
// Remove old forwarding packages of closed channels.
number: 24,
migration: migration24.MigrateFwdPkgCleanup,
},
}
// Big endian is the preferred byte order, due to cursor scans over