itest: add more tests related to inbound fees

Add tests for setting inbound fees in channel policies, including tests
where no inbound fees are set in the PolicyUpdateRequest.
This commit is contained in:
feelancer21 committed 2024-05-22 20:48:52 +02:00
1 parent f62c00fe34
commit dc4ec45423
3 files changed
+55 -15

No files matched your search

+12
View File
@@ -681,6 +681,18 @@ func CheckChannelPolicy(policy, expectedPolicy *lnrpc.RoutingPolicy) error {
return fmt.Errorf("expected max htlc %v, got %v",
expectedPolicy.MaxHtlcMsat, policy.MaxHtlcMsat)
}
if policy.InboundFeeBaseMsat != expectedPolicy.InboundFeeBaseMsat {
return fmt.Errorf("expected inbound base fee %v, got %v",
expectedPolicy.InboundFeeBaseMsat,
policy.InboundFeeBaseMsat)
}
if policy.InboundFeeRateMilliMsat !=
expectedPolicy.InboundFeeRateMilliMsat {
return fmt.Errorf("expected inbound fee rate %v, got %v",
expectedPolicy.InboundFeeRateMilliMsat,
policy.InboundFeeRateMilliMsat)
}
if policy.Disabled != expectedPolicy.Disabled {
return errors.New("edge should be disabled but isn't")
}