watchtower/wtwire/init: use feature.ValidateRequired
This allows us to remove the custom error type originally implemented for this purpose.
This commit is contained in:
2 files changed
+5
-29
No files matched your search
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"github.com/btcsuite/btcd/chaincfg"
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
"github.com/lightningnetwork/lnd/feature"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
"github.com/lightningnetwork/lnd/watchtower/wtwire"
|
||||
)
|
||||
@@ -60,8 +61,8 @@ var checkRemoteInitTests = []checkRemoteInitTest{
|
||||
lHash: testnetChainHash,
|
||||
rFeatures: lnwire.NewRawFeatureVector(lnwire.GossipQueriesRequired),
|
||||
rHash: testnetChainHash,
|
||||
expErr: wtwire.NewErrUnknownRequiredFeatures(
|
||||
lnwire.GossipQueriesRequired,
|
||||
expErr: feature.NewErrUnknownRequired(
|
||||
[]lnwire.FeatureBit{lnwire.GossipQueriesRequired},
|
||||
),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user