autopilot/graph: set max htlc in test edge policies
Co-authored-by: Johan T. Halseth <johanth@gmail.com>
This commit is contained in:
parent
cced754659
commit
f8e588e2e3
@ -227,9 +227,10 @@ func (d *databaseChannelGraph) addRandChannel(node1, node2 *btcec.PublicKey,
|
|||||||
LastUpdate: time.Now(),
|
LastUpdate: time.Now(),
|
||||||
TimeLockDelta: 10,
|
TimeLockDelta: 10,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: lnwire.NewMSatFromSatoshis(capacity),
|
||||||
FeeBaseMSat: 10,
|
FeeBaseMSat: 10,
|
||||||
FeeProportionalMillionths: 10000,
|
FeeProportionalMillionths: 10000,
|
||||||
MessageFlags: 0,
|
MessageFlags: 1,
|
||||||
ChannelFlags: 0,
|
ChannelFlags: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -242,9 +243,10 @@ func (d *databaseChannelGraph) addRandChannel(node1, node2 *btcec.PublicKey,
|
|||||||
LastUpdate: time.Now(),
|
LastUpdate: time.Now(),
|
||||||
TimeLockDelta: 10,
|
TimeLockDelta: 10,
|
||||||
MinHTLC: 1,
|
MinHTLC: 1,
|
||||||
|
MaxHTLC: lnwire.NewMSatFromSatoshis(capacity),
|
||||||
FeeBaseMSat: 10,
|
FeeBaseMSat: 10,
|
||||||
FeeProportionalMillionths: 10000,
|
FeeProportionalMillionths: 10000,
|
||||||
MessageFlags: 0,
|
MessageFlags: 1,
|
||||||
ChannelFlags: 1,
|
ChannelFlags: 1,
|
||||||
}
|
}
|
||||||
if err := d.db.UpdateEdgePolicy(edgePolicy); err != nil {
|
if err := d.db.UpdateEdgePolicy(edgePolicy); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user