From c1ea5b1c3f36494d301c3037bf893e0525809024 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 17 May 2026 10:45:23 +0800 Subject: [PATCH] add detailed tx logging on backend --- apps/desktop/src/bun/lib/monero/wallet.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/desktop/src/bun/lib/monero/wallet.ts b/apps/desktop/src/bun/lib/monero/wallet.ts index 227615e..89e9952 100644 --- a/apps/desktop/src/bun/lib/monero/wallet.ts +++ b/apps/desktop/src/bun/lib/monero/wallet.ts @@ -189,6 +189,12 @@ export class MoneroWalletManager { if (!this.wallet) throw new Error('Wallet RPC not started') const txs = await this.wallet.getTxs() as any[] console.log(`[monero] transactions: ${txs?.length ?? 0} returned`) + if (txs?.length) { + for (const tx of txs.slice(0, 5)) { + console.log(`[monero] tx: hash=${tx.hash?.substring(0, 12) ?? '?'} amount=${tx.amount?.toString() ?? '0'} dir=${tx.direction} height=${tx.height ?? 0}`) + } + if (txs.length > 5) console.log(`[monero] ... and ${txs.length - 5} more`) + } return txs ?? [] }