diff --git a/signet-dashboard/src/bitcoin-rpc.js b/signet-dashboard/src/bitcoin-rpc.js index de49c91..180cdbc 100644 --- a/signet-dashboard/src/bitcoin-rpc.js +++ b/signet-dashboard/src/bitcoin-rpc.js @@ -974,9 +974,10 @@ class BitcoinRPC { !utxo.isLockedInMutex ).length; - // Mettre à jour le cache + // Mettre à jour le cache avec le format: ; const now = new Date().toISOString(); - writeFileSync(cachePath, now, 'utf8'); + const cacheContent = `${now};${currentHeight}`; + writeFileSync(cachePath, cacheContent, 'utf8'); // Écrire le fichier de sortie avec toutes les catégories (incluant les UTXOs dépensés pour historique) // Format: category;txid;vout;amount;confirmations;isAnchorChange;blockTime