diff --git a/web/src/main/java/de/cotto/lndmanagej/controller/LegacyController.java b/web/src/main/java/de/cotto/lndmanagej/controller/LegacyController.java index 69dd4f64..d57abdde 100644 --- a/web/src/main/java/de/cotto/lndmanagej/controller/LegacyController.java +++ b/web/src/main/java/de/cotto/lndmanagej/controller/LegacyController.java @@ -36,7 +36,7 @@ public class LegacyController { Pubkey pubkey = localOpenChannel.getRemotePubkey(); return localOpenChannel.getId().getCompactForm() + "\t" + pubkey + - "\t" + localOpenChannel.getCapacity() + + "\t" + localOpenChannel.getCapacity().toStringSat() + "\t" + nodeService.getAlias(pubkey); }) .collect(Collectors.joining(NEWLINE)); diff --git a/web/src/test/java/de/cotto/lndmanagej/controller/LegacyControllerTest.java b/web/src/test/java/de/cotto/lndmanagej/controller/LegacyControllerTest.java index 1e1981c9..22b01838 100644 --- a/web/src/test/java/de/cotto/lndmanagej/controller/LegacyControllerTest.java +++ b/web/src/test/java/de/cotto/lndmanagej/controller/LegacyControllerTest.java @@ -40,8 +40,8 @@ class LegacyControllerTest { when(nodeService.getAlias(PUBKEY_3)).thenReturn(ALIAS_3); when(channelService.getOpenChannels()).thenReturn(Set.of(LOCAL_OPEN_CHANNEL, LOCAL_OPEN_CHANNEL_TO_NODE_3)); assertThat(legacyController.getOpenChannelIdsPretty()).isEqualTo( - CHANNEL_ID_COMPACT + "\t" + PUBKEY_2 + "\t" + CAPACITY + "\t" + ALIAS_2 + "\n" + - CHANNEL_ID_COMPACT_4 + "\t" + PUBKEY_3 + "\t" + CAPACITY_2 + "\t" + ALIAS_3 + CHANNEL_ID_COMPACT + "\t" + PUBKEY_2 + "\t" + CAPACITY.toStringSat() + "\t" + ALIAS_2 + "\n" + + CHANNEL_ID_COMPACT_4 + "\t" + PUBKEY_3 + "\t" + CAPACITY_2.toStringSat() + "\t" + ALIAS_3 ); } @@ -51,4 +51,4 @@ class LegacyControllerTest { assertThat(legacyController.getOpenChannelIdsPretty()) .matches(CHANNEL_ID_COMPACT + ".*\n" + CHANNEL_ID_COMPACT_4 + ".*"); } -} \ No newline at end of file +}