routing: track amt ranges in mc

This commit is contained in:
Joost Jager committed 2019-11-22 11:17:28 +01:00
1 parent 62f8cca75b
commit cdf1aa5bc1
8 files changed
+320 -229

No files matched your search

+2 -2
View File
@@ -204,12 +204,12 @@ func TestMissionControlChannelUpdate(t *testing.T) {
ctx.reportFailure(
0, lnwire.NewFeeInsufficient(0, lnwire.ChannelUpdate{}),
)
ctx.expectP(0, testAprioriHopProbability)
ctx.expectP(100, testAprioriHopProbability)
// Report another failure for the same channel. We expect it to be
// pruned.
ctx.reportFailure(
0, lnwire.NewFeeInsufficient(0, lnwire.ChannelUpdate{}),
)
ctx.expectP(0, 0)
ctx.expectP(100, 0)
}