read max htlc from policy

This commit is contained in:
Carsten Otto
2022-05-13 18:31:05 +02:00
parent daad59ef1d
commit 96d60d6bda
13 changed files with 128 additions and 76 deletions

View File

@@ -160,11 +160,15 @@ class ChannelControllerIT {
.andExpect(jsonPath("$.balance.remoteReserveSat", is("10")))
.andExpect(jsonPath("$.balance.remoteAvailableSat", is("113")))
.andExpect(jsonPath("$.policies.local.enabled", is(false)))
.andExpect(jsonPath("$.policies.remote.enabled", is(true)))
.andExpect(jsonPath("$.policies.local.feeRatePpm", is(200)))
.andExpect(jsonPath("$.policies.local.baseFeeMilliSat", is(0)))
.andExpect(jsonPath("$.policies.local.timeLockDelta", is(40)))
.andExpect(jsonPath("$.policies.local.maxHtlcMilliSat", is("0")))
.andExpect(jsonPath("$.policies.remote.enabled", is(true)))
.andExpect(jsonPath("$.policies.remote.feeRatePpm", is(300)))
.andExpect(jsonPath("$.policies.remote.baseFeeMilliSat", is(0)))
.andExpect(jsonPath("$.policies.remote.timeLockDelta", is(144)))
.andExpect(jsonPath("$.policies.remote.maxHtlcMilliSat", is("22222000")))
.andExpect(jsonPath("$.feeReport.earnedMilliSat", is("1234")))
.andExpect(jsonPath("$.feeReport.sourcedMilliSat", is("567")))
.andExpect(jsonPath("$.flowReport.forwardedSentMilliSat", is("1000")))