mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
630916b323
This commit adds a feature bit for the recently implemented state machine as defined within the specification. With this commit, older non-upgraded lnd nodes will fail a bit more gracefully when connecting to updated nodes.
14 lines
466 B
Go
14 lines
466 B
Go
package main
|
|
|
|
import "github.com/lightningnetwork/lnd/lnwire"
|
|
|
|
// globalFeatures feature vector which affects HTLCs and thus are also
|
|
// advertised to other nodes.
|
|
var globalFeatures = lnwire.NewFeatureVector([]lnwire.Feature{})
|
|
|
|
// localFeatures is an feature vector which represent the features which
|
|
// only affect the protocol between these two nodes.
|
|
var localFeatures = lnwire.NewFeatureVector([]lnwire.Feature{
|
|
{"lcp-stop-and-wait", lnwire.RequiredFlag},
|
|
})
|