channeldb: complete migration 12 for TLV invoices
This commit is contained in:
10 files changed
+216
-144
No files matched your search
@@ -13,6 +13,7 @@ import (
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/coreos/bbolt"
|
||||
"github.com/go-errors/errors"
|
||||
"github.com/lightningnetwork/lnd/channeldb/migration12"
|
||||
"github.com/lightningnetwork/lnd/channeldb/migration_01_to_11"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
)
|
||||
@@ -116,6 +117,12 @@ var (
|
||||
number: 11,
|
||||
migration: migration_01_to_11.MigrateInvoices,
|
||||
},
|
||||
{
|
||||
// Migrate to TLV invoice bodies, add payment address
|
||||
// and features, remove receipt.
|
||||
number: 12,
|
||||
migration: migration12.MigrateInvoiceTLV,
|
||||
},
|
||||
}
|
||||
|
||||
// Big endian is the preferred byte order, due to cursor scans over
|
||||
|
||||
Reference in new issue
Block a user