diff --git a/slpgraphmanager.ts b/slpgraphmanager.ts index 2076ce2..7f57b28 100644 --- a/slpgraphmanager.ts +++ b/slpgraphmanager.ts @@ -249,7 +249,8 @@ export class SlpGraphManager { lastPrunedHeight = checkpoint.height; } await this.loadTokenFromDb(token, lastPrunedHeight); - console.log(`[INFO] ${++count} tokens loaded from db.`) + console.log(`[INFO] ${++count} tokens loaded from db`); + console.log(`[INFO] ${this._cacheGraphTxnCount} graph dbos loaded`); } } } diff --git a/utxos.ts b/utxos.ts index 88bfec3..aad5bc7 100644 --- a/utxos.ts +++ b/utxos.ts @@ -6,6 +6,13 @@ class GlobalUtxoSet extends Map { return this._instance || (this._instance = new GlobalUtxoSet()); } private static _instance: GlobalUtxoSet; + + public get(key: string): Buffer | undefined { + if (this.size % 1000) { + console.log(`UTXO size: ${this.size}`); + } + return super.get(key); + } private constructor() { super(); } }