From bf7701cd62e0559060d51105e3fe0c864e2b5595 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 16 Apr 2017 18:19:03 -0700 Subject: [PATCH] features: add new feature bits to guard recent changes --- features.go | 7 ++++++- lnwire/pong.go | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/features.go b/features.go index bdc1eee8..b0a4e7d2 100644 --- a/features.go +++ b/features.go @@ -8,4 +8,9 @@ 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{ + { + Name: "new-ping-and-funding", + Flag: lnwire.RequiredFlag, + }, +}) diff --git a/lnwire/pong.go b/lnwire/pong.go index 26011e12..ecc0a11e 100644 --- a/lnwire/pong.go +++ b/lnwire/pong.go @@ -2,7 +2,7 @@ package lnwire import "io" -// PingPayload is a set of opaque bytes sent in response to a ping message. +// PongPayload is a set of opaque bytes sent in response to a ping message. type PongPayload []byte // Pong defines a message which is the direct response to a received Ping