channeldb/migration: copy current lnwire to migration dir

To avoid code changing underneath the static migrations, we copy the
lnwire dependency in its current form into the migration directory.

Ideally the migrations doesn't depend on any code that might change,
this takes us a step closer.
This commit is contained in:
Johan T. Halseth committed 2021-02-24 14:34:57 +01:00
1 parent c6a8816043
commit 7569cca19b
56 files changed
+6866 -18

No files matched your search

+1 -1
View File
@@ -7,8 +7,8 @@ import (
"time"
"github.com/btcsuite/btcd/wire"
lnwire "github.com/lightningnetwork/lnd/channeldb/migration/lnwire21"
"github.com/lightningnetwork/lnd/lntypes"
"github.com/lightningnetwork/lnd/lnwire"
"github.com/lightningnetwork/lnd/tlv"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"github.com/lightningnetwork/lnd/channeldb/kvdb"
"github.com/lightningnetwork/lnd/lnwire"
lnwire "github.com/lightningnetwork/lnd/channeldb/migration/lnwire21"
)
var emptyFeatures = lnwire.NewFeatureVector(nil, nil)