Skip to content

Commit 7b093cf

Browse files
committed
feat: list all node sync times on info screen
1 parent 4f09b0a commit 7b093cf

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

app/src/main/java/to/bitkit/ui/NodeInfoScreen.kt

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,41 @@ private fun NodeStateSection(
204204
value = if (status.isRunning) "" else "",
205205
)
206206
SettingsTextButtonRow(
207-
title = "Lightning wallet sync time:",
207+
title = "Lightning Wallet Sync Time:",
208208
value = status.latestLightningWalletSyncTimestamp
209209
?.let { Instant.ofEpochSecond(it.toLong()).formatted() }
210210
?: "Never",
211211
)
212212
SettingsTextButtonRow(
213-
title = "Onchain wallet sync time:",
213+
title = "Onchain Wallet Sync Time:",
214214
value = status.latestOnchainWalletSyncTimestamp
215215
?.let { Instant.ofEpochSecond(it.toLong()).formatted() }
216216
?: "Never",
217217
)
218+
SettingsTextButtonRow(
219+
title = "Rapid Gossip Sync Snapshot time:",
220+
value = status.latestRgsSnapshotTimestamp
221+
?.let { Instant.ofEpochSecond(it.toLong()).formatted() }
222+
?: "Never",
223+
)
224+
SettingsTextButtonRow(
225+
title = "Fee Rate Cache Update time:",
226+
value = status.latestFeeRateCacheUpdateTimestamp
227+
?.let { Instant.ofEpochSecond(it.toLong()).formatted() }
228+
?: "Never",
229+
)
230+
SettingsTextButtonRow(
231+
title = "Channel Monitor Archival Height:",
232+
value = status.latestChannelMonitorArchivalHeight
233+
?.let { "$it" }
234+
?: "Never",
235+
)
236+
SettingsTextButtonRow(
237+
title = "Pathfinding Scores Sync Time:",
238+
value = status.latestPathfindingScoresSyncTimestamp
239+
?.let { Instant.ofEpochSecond(it.toLong()).formatted() }
240+
?: "Never"
241+
)
218242
SettingsTextButtonRow(
219243
title = "Block height:",
220244
value = "${status.currentBestBlock.height}",

0 commit comments

Comments
 (0)