add open height to channel details

This commit is contained in:
Carsten Otto
2021-11-23 22:19:17 +01:00
parent 565cc22a8f
commit 073d0b3d17
5 changed files with 96 additions and 1 deletions

View File

@@ -71,6 +71,7 @@ class ChannelDetailsControllerIT {
.andExpect(jsonPath("$.remotePubkey", is(PUBKEY_2.toString())))
.andExpect(jsonPath("$.remoteAlias", is(ALIAS_2)))
.andExpect(jsonPath("$.capacity", is(String.valueOf(CAPACITY.satoshis()))))
.andExpect(jsonPath("$.openHeight", is(CHANNEL_ID.getBlockHeight())))
.andExpect(jsonPath("$.private", is(true)))
.andExpect(jsonPath("$.onChainCosts.openCosts", is("1000")))
.andExpect(jsonPath("$.onChainCosts.closeCosts", is("2000")))