Merge branch 'master' into bundle-metrics

This commit is contained in:
boufni95 2025-02-06 16:54:43 +00:00
commit 36127b0115
2 changed files with 15 additions and 2 deletions

View file

@ -19,6 +19,14 @@
#DATABASE_FILE=db.sqlite
#METRICS_DATABASE_FILE=metrics.sqlite
#LOGS_DIR=logs
# directory where app data will be stored
#DATA_DIR=
# Pub will generate a ranom secret to encrypt the seed phrase in the database.
# Specify a location only if you require privleged storage, else it will be stored in the Pub data dir.
#WALLET_SECRET_PATH=
# If using a password file directly within LND's configuration, specify it here for Pub to use it for unlocking.
#WALLET_PASSWORD_PATH=
#LOCALHOST
#ADMIN_TOKEN=

View file

@ -327,8 +327,13 @@ export default class Handler {
}
})
const closed = await Promise.all(closedChannels.filter(c => c.closeType !== ChannelCloseSummary_ClosureType.FUNDING_CANCELED).map(async c => {
const tx = await this.lnd.GetTx(c.closingTxHash)
return { capacity: Number(c.capacity), channel_id: c.chanId, closed_height: c.closeHeight, close_tx_timestamp: Number(tx.timeStamp) }
try {
const tx = await this.lnd.GetTx(c.closingTxHash)
return { capacity: Number(c.capacity), channel_id: c.chanId, closed_height: c.closeHeight, close_tx_timestamp: Number(tx.timeStamp) }
} catch (e) {
return { capacity: Number(c.capacity), channel_id: c.chanId, closed_height: c.closeHeight, close_tx_timestamp: 0 }
}
}))
return {
nodes: [{