forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeatures.go
44 lines (41 loc) · 958 Bytes
/
features.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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{
{
Name: "new-ping-and-funding",
Flag: lnwire.RequiredFlag,
},
{
Name: "node-ann-feature-addr-swap",
Flag: lnwire.RequiredFlag,
},
{
Name: "dynamic-fees",
Flag: lnwire.RequiredFlag,
},
{
Name: "shutdown-close-flow",
Flag: lnwire.RequiredFlag,
},
{
Name: "sphinx-payload",
Flag: lnwire.RequiredFlag,
},
{
Name: "htlc-dust-accounting",
Flag: lnwire.RequiredFlag,
},
{
Name: "encrypted-errors",
Flag: lnwire.RequiredFlag,
},
{
Name: "new-funding-and-commitment",
Flag: lnwire.RequiredFlag,
},
})