Skip to content

Commit 58b8609

Browse files
committed
inscription atlas: TEMP debug log to diagnose why prod isn't rendering
Adding console.debug at each rejection point in BlockScene.requestArtifactSlot and at the entry of OrdpoolInscriptionAtlas.requestSlot. Local code paths match what the bundled prod build serves; flag wire format includes ordpool_inscription_image as expected; 6 image inscriptions identified in the test block, all eligible by vsize and flag — yet the prod page shows zero spinners and zero images. This logs whether the atlas is even being asked, and on what data, so DevTools can pinpoint where the pipeline drops the tx. Will be reverted once the prod issue is diagnosed.
1 parent 7e21e88 commit 58b8609

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

frontend/src/app/components/block-overview-graph/_ordpool/ordpool-inscription-atlas.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ export class OrdpoolInscriptionAtlas {
192192
* tell "no preview is showing" from "preview never even tried".
193193
*/
194194
requestSlot(txid: string, vsize: number, sprite: TxSprite, kind: OrdpoolArtifactKind): boolean {
195+
// TEMP-DEBUG: tracks every requestSlot call so we can see in DevTools whether the
196+
// atlas is being asked at all and why it might be refusing. Remove once the
197+
// production atlas issue is diagnosed.
198+
// eslint-disable-next-line no-console
199+
console.debug('[ordpool-atlas] requestSlot', { txid, kind, vsize, hasAtlas: !!this.gl, currentSize: this.currentSize, entries: this.entries.size, failed: this.failed.has(txid), pending: this.fetchQueue.length, inFlight: this.inFlight });
195200
if (this.failed.has(txid)) {
196201
return false;
197202
}

frontend/src/app/components/block-overview-graph/block-scene.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,31 @@ export default class BlockScene {
270270
// flag for inscription / stamp / atomical + vsize threshold) so TxView doesn't
271271
// need to know any of those rules.
272272
requestArtifactSlot(tx: TxView): boolean {
273-
if (!this.ordpoolAtlas || !tx.sprite) {
273+
// TEMP-DEBUG: instrumented to diagnose why the atlas isn't registering image
274+
// inscriptions in production. Logs every call and the reason for rejection so
275+
// we can see in DevTools console where the pipeline drops the tx. Remove once
276+
// the prod atlas issue is diagnosed.
277+
if (!this.ordpoolAtlas) {
278+
// eslint-disable-next-line no-console
279+
console.debug('[ordpool-scene] no atlas', { txid: tx.txid });
280+
return false;
281+
}
282+
if (!tx.sprite) {
283+
// eslint-disable-next-line no-console
284+
console.debug('[ordpool-scene] no sprite', { txid: tx.txid });
274285
return false;
275286
}
276287
if (tx.vsize <= ORDPOOL_ATLAS_VSIZE_THRESHOLD) {
277288
return false;
278289
}
279290
const kind = pickArtifactKind(tx.bigintFlags);
280291
if (!kind) {
292+
// Log only when the tx has SOME ordpool flag set, so we don't flood the console
293+
// with every non-ordpool tx in the block.
294+
if (tx.bigintFlags > 0n) {
295+
// eslint-disable-next-line no-console
296+
console.debug('[ordpool-scene] no artifact kind', { txid: tx.txid, vsize: tx.vsize, bigintFlags: tx.bigintFlags.toString() });
297+
}
281298
return false;
282299
}
283300
return this.ordpoolAtlas.requestSlot(tx.txid, tx.vsize, tx.sprite, kind);

0 commit comments

Comments
 (0)