@@ -71,6 +71,7 @@ func TestAddProof(t *testing.T) {
7171 NodeKey1Bytes : node1 .PubKeyBytes ,
7272 NodeKey2Bytes : node2 .PubKeyBytes ,
7373 AuthProof : nil ,
74+ Features : lnwire .EmptyFeatureVector (),
7475 FundingScript : fn .Some (script ),
7576 }
7677 copy (edge .BitcoinKey1Bytes [:], bitcoinKey1 .SerializeCompressed ())
@@ -158,6 +159,7 @@ func TestIgnoreChannelEdgePolicyForUnknownChannel(t *testing.T) {
158159 BitcoinKey1Bytes : pub1 ,
159160 BitcoinKey2Bytes : pub2 ,
160161 AuthProof : nil ,
162+ Features : lnwire .EmptyFeatureVector (),
161163 FundingScript : fn .Some (script ),
162164 }
163165 edgePolicy := & models.ChannelEdgePolicy {
@@ -281,6 +283,7 @@ func TestWakeUpOnStaleBranch(t *testing.T) {
281283 BitcoinSig1Bytes : testSig .Serialize (),
282284 BitcoinSig2Bytes : testSig .Serialize (),
283285 },
286+ Features : lnwire .EmptyFeatureVector (),
284287 FundingScript : fn .Some (fundingScript1 ),
285288 }
286289 copy (edge1 .BitcoinKey1Bytes [:], bitcoinKey1 .SerializeCompressed ())
@@ -300,6 +303,7 @@ func TestWakeUpOnStaleBranch(t *testing.T) {
300303 BitcoinSig1Bytes : testSig .Serialize (),
301304 BitcoinSig2Bytes : testSig .Serialize (),
302305 },
306+ Features : lnwire .EmptyFeatureVector (),
303307 FundingScript : fn .Some (fundingScript2 ),
304308 }
305309 copy (edge2 .BitcoinKey1Bytes [:], bitcoinKey1 .SerializeCompressed ())
@@ -491,6 +495,7 @@ func TestDisconnectedBlocks(t *testing.T) {
491495 BitcoinSig1Bytes : testSig .Serialize (),
492496 BitcoinSig2Bytes : testSig .Serialize (),
493497 },
498+ Features : lnwire .EmptyFeatureVector (),
494499 FundingScript : fn .Some ([]byte {}),
495500 }
496501 copy (edge1 .BitcoinKey1Bytes [:], bitcoinKey1 .SerializeCompressed ())
@@ -512,6 +517,7 @@ func TestDisconnectedBlocks(t *testing.T) {
512517 BitcoinSig1Bytes : testSig .Serialize (),
513518 BitcoinSig2Bytes : testSig .Serialize (),
514519 },
520+ Features : lnwire .EmptyFeatureVector (),
515521 FundingScript : fn .Some ([]byte {}),
516522 }
517523 copy (edge2 .BitcoinKey1Bytes [:], bitcoinKey1 .SerializeCompressed ())
@@ -645,6 +651,7 @@ func TestChansClosedOfflinePruneGraph(t *testing.T) {
645651 },
646652 ChannelPoint : * chanUTXO ,
647653 Capacity : chanValue ,
654+ Features : lnwire .EmptyFeatureVector (),
648655 FundingScript : fn .Some (script ),
649656 }
650657 copy (edge1 .BitcoinKey1Bytes [:], bitcoinKey1 .SerializeCompressed ())
@@ -1062,6 +1069,7 @@ func TestIsStaleNode(t *testing.T) {
10621069 BitcoinKey1Bytes : pub1 ,
10631070 BitcoinKey2Bytes : pub2 ,
10641071 AuthProof : nil ,
1072+ Features : lnwire .EmptyFeatureVector (),
10651073 FundingScript : fn .Some (script ),
10661074 }
10671075 if err := ctx .builder .AddEdge (ctxb , edge ); err != nil {
@@ -1142,6 +1150,7 @@ func TestIsKnownEdge(t *testing.T) {
11421150 BitcoinKey2Bytes : pub2 ,
11431151 AuthProof : nil ,
11441152 FundingScript : fn .Some (script ),
1153+ Features : lnwire .EmptyFeatureVector (),
11451154 }
11461155 if err := ctx .builder .AddEdge (ctxb , edge ); err != nil {
11471156 t .Fatalf ("unable to add edge: %v" , err )
@@ -1200,6 +1209,7 @@ func TestIsStaleEdgePolicy(t *testing.T) {
12001209 BitcoinKey1Bytes : pub1 ,
12011210 BitcoinKey2Bytes : pub2 ,
12021211 AuthProof : nil ,
1212+ Features : lnwire .EmptyFeatureVector (),
12031213 FundingScript : fn .Some (script ),
12041214 }
12051215 if err := ctx .builder .AddEdge (ctxb , edge ); err != nil {
@@ -1508,6 +1518,7 @@ func parseTestGraph(t *testing.T, useCache bool, path string) (
15081518 AuthProof : & testAuthProof ,
15091519 ChannelPoint : fundingPoint ,
15101520 Capacity : btcutil .Amount (edge .Capacity ),
1521+ Features : lnwire .EmptyFeatureVector (),
15111522 }
15121523
15131524 copy (edgeInfo .NodeKey1Bytes [:], node1Bytes )
@@ -1882,6 +1893,7 @@ func createTestGraphFromChannels(t *testing.T, useCache bool,
18821893 BitcoinKey1Bytes : node1Vertex ,
18831894 NodeKey2Bytes : node2Vertex ,
18841895 BitcoinKey2Bytes : node2Vertex ,
1896+ Features : lnwire .EmptyFeatureVector (),
18851897 }
18861898
18871899 err = graph .AddChannelEdge (ctx , & edgeInfo )
0 commit comments