{"id":"XE-0004","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"13","source_url":"https://github.com/xeprotocol/xe/issues/13","reporter_id":4,"title":"Explorer rounds uint64 pow_nonce in block details and RAW view (Minor)","area":"sdk-docs-web","claimed_tier":"minor","assessed_tier":null,"verdict":null,"duplicate_of":null,"tracked":true,"internal_ref":"","internal_url":null,"status":"accepted","closed_reason":null,"github_state":"open","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-10-29T13:57:13.417930+00:00","updated_at":"2026-11-10T11:38:21.333527+00:00","source_created_at":"2026-10-23T09:38:20+00:00","told_at":"2026-11-10T00:15:41+00:00","status_changed_at":"2026-10-29T14:04:13.206378+00:00","url":"https://bounty.xe.network/XE-0004","body":"# Explorer rounds uint64 proof-of-work nonces in detail and RAW views\n\nSuggested severity: Minor (display/data fidelity). Team determines final severity. No ledger corruption or funds impact established.\nObserved on 23 October 2026, testnet-0005, node UI version xe/92d83d1.\n\n## Reproduction\n1. Open https://ldn.test.network/blocks/?hash=feaebd2fefd055247d6019dd0317b32c833e715ddd3c4b33269c16917103515d\n2. Read pow_nonce in the detail fields and RAW section: 810647907827518000.\n3. Retrieve the original HTTP response as TEXT from https://ldn.core.test.network/blocks/feaebd2fefd055247d6019dd0317b32c833e715ddd3c4b33269c16917103515d . Its exact pow_nonce is 810647907827517891.\n4. A second block confirms the discrepancy: 506fc117899d6f8a32a28c39a1e4c0b0c45e775eacaa74ac9e8f20a04a3172c7 has exact nonce 236118051784428934 while the explorer displays 236118051784428930.\n\n## Expected and actual\nExpected: preserve the exact uint64 nonce in details and any view labeled RAW.\nActual: the displayed and reconstructed RAW values differ from the original JSON integer token. Parsing the original response with ordinary JSON.parse reproduces the rounded displayed values, consistent with JavaScript Number precision loss. The frontend implementation has not yet been inspected to establish the exact code path.\n\n## Impact and limits\nExplorer data cannot be copied as an exact block record for independent verification/debugging. Memo, amount and finalized status passed the focused checks. This report does not establish a consensus failure, broken PoW acceptance, theft or supply inflation. A browser display issue does not imply that the stored block changed.\n\n## Minimal PoC (Node.js 20+, read-only)\nSave as `nonce-poc.mjs` and run `node nonce-poc.mjs`:\n\n```js\nconst hash = 'feaebd2fefd055247d6019dd0317b32c833e715ddd3c4b33269c16917103515d';\nconst response = await fetch(`https://ldn.core.test.network/blocks/${hash}`);\nif (!response.ok) throw Error(`HTTP ${response.status}`);\nconst raw = await response.text();\nconst exact = raw.match(/\"pow_nonce\"\\s*:\\s*(\\d+)/)?.[1];\nconst parsed = String(JSON.parse(raw).pow_nonce);\nconsole.log({ exactNonce: exact, ordinaryJsonParsedNonce: parsed, precisionLost: exact !== parsed });\n```\n\nVerified output: exactNonce `810647907827517891`, ordinaryJsonParsedNonce `810647907827518000`, precisionLost `true`. Compare the second value to the explorer field and its RAW section. This script illustrates the observed precision failure; it is not a claim that the explorer implementation has been source-audited.\n\nOriginal HTTP integer tokens from the two blocks:\n\n```json\n{\"hash\":\"feaebd2fefd055247d6019dd0317b32c833e715ddd3c4b33269c16917103515d\",\"pow_nonce\":810647907827517891}\n{\"hash\":\"506fc117899d6f8a32a28c39a1e4c0b0c45e775eacaa74ac9e8f20a04a3172c7\",\"pow_nonce\":236118051784428934}\n```\n\nThe lines above are excerpts from two separate responses, not a single JSON document. Original response texts and an explorer screenshot are retained locally. The public API and explorer URLs above provide independently accessible evidence while this testnet history remains available.\n\nPossible remediation: use a lossless JSON parser/BigInt representation for uint64 fields, and display the literal original response text for RAW. Add a regression case above Number.MAX_SAFE_INTEGER.\n\n## Reporting details\nArea: embedded explorer / block detail / integer rendering.\nExisting open and closed issue titles/bodies were checked before submission; no matching nonce-precision report was found in those results.\nXE payout/designated address (gt1): `e8dbde081a5511186788012f96ba1f9ff34b0b126bfde6fb4f8d45d6b01c7924`.\nSubmitted under the programme at https://test.network/bounty. Please assign severity and tracking labels during triage.\n","patch_refs":[{"id":119,"repo":"xeprotocol/xe","kind":"pr","ref":"29","title":"fix(web): preserve exact uint64 pow_nonce in explorer block details and RAW view","url":"https://github.com/xeprotocol/xe/pull/29","note":"","state":"open","author":"ocakciomursel-pixel","added_by":"desk","created_at":"2026-10-29T13:57:30.091343+00:00"}],"thread":[{"id":1570,"source":"github","source_ref":"6755092257","author":"XE desk","team":true,"body":"Read and accepted. It is tracked internally and the fix will land in a public PR; this issue is\nupdated when it does, and the tier and award follow the fix. The desk entry is https://bounty.xe.network/XE-0004.","created_at":"2026-11-10T00:15:41+00:00"}]}