Explorer rounds uint64 pow_nonce in block details and RAW view (Minor)
Report
Explorer rounds uint64 proof-of-work nonces in detail and RAW views
Suggested severity: Minor (display/data fidelity). Team determines final severity. No ledger corruption or funds impact established. Observed on 23 October 2026, testnet-0005, node UI version xe/92d83d1.
Reproduction
- Open https://ldn.test.network/blocks/?hash=feaebd2fefd055247d6019dd0317b32c833e715ddd3c4b33269c16917103515d
- Read pow_nonce in the detail fields and RAW section: 810647907827518000.
- Retrieve the original HTTP response as TEXT from https://ldn.core.test.network/blocks/feaebd2fefd055247d6019dd0317b32c833e715ddd3c4b33269c16917103515d . Its exact pow_nonce is 810647907827517891.
- A second block confirms the discrepancy: 506fc117899d6f8a32a28c39a1e4c0b0c45e775eacaa74ac9e8f20a04a3172c7 has exact nonce 236118051784428934 while the explorer displays 236118051784428930.
Expected and actual
Expected: preserve the exact uint64 nonce in details and any view labeled RAW. Actual: 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.
Impact and limits
Explorer 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.
Minimal PoC (Node.js 20+, read-only)
Save as nonce-poc.mjs and run node nonce-poc.mjs:
const hash = 'feaebd2fefd055247d6019dd0317b32c833e715ddd3c4b33269c16917103515d';
const response = await fetch(`https://ldn.core.test.network/blocks/${hash}`);
if (!response.ok) throw Error(`HTTP ${response.status}`);
const raw = await response.text();
const exact = raw.match(/"pow_nonce"\s*:\s*(\d+)/)?.[1];
const parsed = String(JSON.parse(raw).pow_nonce);
console.log({ exactNonce: exact, ordinaryJsonParsedNonce: parsed, precisionLost: exact !== parsed });
Verified 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.
Original HTTP integer tokens from the two blocks:
{"hash":"feaebd2fefd055247d6019dd0317b32c833e715ddd3c4b33269c16917103515d","pow_nonce":810647907827517891}
{"hash":"506fc117899d6f8a32a28c39a1e4c0b0c45e775eacaa74ac9e8f20a04a3172c7","pow_nonce":236118051784428934}
The 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.
Possible 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.
Reporting details
Area: embedded explorer / block detail / integer rendering.
Existing open and closed issue titles/bodies were checked before submission; no matching nonce-precision report was found in those results.
XE payout/designated address (gt1): e8dbde081a5511186788012f96ba1f9ff34b0b126bfde6fb4f8d45d6b01c7924.
Submitted under the programme at https://test.network/bounty. Please assign severity and tracking labels during triage.
Thread
Read and accepted. It is tracked internally and the fix will land in a public PR; this issue is updated when it does, and the tier and award follow the fix. The desk entry is https://bounty.xe.network/XE-0004.