From f8e588e2e3079d491371e8ae24b84911ce32a086 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Sat, 12 Jan 2019 18:59:45 +0100 Subject: [PATCH] autopilot/graph: set max htlc in test edge policies Co-authored-by: Johan T. Halseth --- autopilot/graph.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autopilot/graph.go b/autopilot/graph.go index 534f7d81..95bf89ad 100644 --- a/autopilot/graph.go +++ b/autopilot/graph.go @@ -227,9 +227,10 @@ func (d *databaseChannelGraph) addRandChannel(node1, node2 *btcec.PublicKey, LastUpdate: time.Now(), TimeLockDelta: 10, MinHTLC: 1, + MaxHTLC: lnwire.NewMSatFromSatoshis(capacity), FeeBaseMSat: 10, FeeProportionalMillionths: 10000, - MessageFlags: 0, + MessageFlags: 1, ChannelFlags: 0, } @@ -242,9 +243,10 @@ func (d *databaseChannelGraph) addRandChannel(node1, node2 *btcec.PublicKey, LastUpdate: time.Now(), TimeLockDelta: 10, MinHTLC: 1, + MaxHTLC: lnwire.NewMSatFromSatoshis(capacity), FeeBaseMSat: 10, FeeProportionalMillionths: 10000, - MessageFlags: 0, + MessageFlags: 1, ChannelFlags: 1, } if err := d.db.UpdateEdgePolicy(edgePolicy); err != nil {