From 630916b323c57399707294ef57b4963cf7d0de05 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 21 Feb 2017 01:49:51 -0800 Subject: [PATCH] feature: add a default feature bit for the spec's state machine 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. --- features.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features.go b/features.go index bdc1eee80..3e61d3d53 100644 --- a/features.go +++ b/features.go @@ -8,4 +8,6 @@ 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{}) +var localFeatures = lnwire.NewFeatureVector([]lnwire.Feature{ + {"lcp-stop-and-wait", lnwire.RequiredFlag}, +})