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 {