add openInitiator to channel basic info/details

This commit is contained in:
Carsten Otto
2021-11-26 10:41:45 +01:00
parent 500d2b4392
commit 9800c2ac5b
5 changed files with 22 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ class ChannelControllerIT {
.andExpect(jsonPath("$.channelPoint", is(CHANNEL_POINT.toString())))
.andExpect(jsonPath("$.remotePubkey", is(PUBKEY_2.toString())))
.andExpect(jsonPath("$.capacity", is(String.valueOf(CAPACITY.satoshis()))))
.andExpect(jsonPath("$.openInitiator", is("REMOTE")))
.andExpect(jsonPath("$.openHeight", is(CHANNEL_ID_2.getBlockHeight())))
.andExpect(jsonPath("$.status.private", is(false)))
.andExpect(jsonPath("$.status.active", is(false)))
@@ -103,6 +104,7 @@ class ChannelControllerIT {
.andExpect(jsonPath("$.remotePubkey", is(PUBKEY_2.toString())))
.andExpect(jsonPath("$.remoteAlias", is(ALIAS_2)))
.andExpect(jsonPath("$.capacity", is(String.valueOf(CAPACITY.satoshis()))))
.andExpect(jsonPath("$.openInitiator", is("LOCAL")))
.andExpect(jsonPath("$.openHeight", is(CHANNEL_ID.getBlockHeight())))
.andExpect(jsonPath("$.status.private", is(true)))
.andExpect(jsonPath("$.status.active", is(true)))