routing: track amt ranges in mc

This commit is contained in:
Joost Jager
2019-09-26 17:04:02 +02:00
parent 62f8cca75b
commit cdf1aa5bc1
8 changed files with 320 additions and 229 deletions

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)
}