{"id":"XE-13248","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"377","source_url":"https://github.com/xeprotocol/xe/issues/377","reporter_id":1343,"title":"[Medium] LockedR cherry-picking — accept/renew can lock a past epoch's higher R (3.00× over-mint demonstrated)","area":"leasing-ledger","claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":"XE-0103","tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T20:42:03.434136+00:00","updated_at":"2026-11-20T00:07:00.558848+00:00","source_created_at":"2026-11-11T12:06:04+00:00","told_at":"2026-11-20T00:05:01+00:00","status_changed_at":"2026-11-20T00:04:38.837746+00:00","url":"https://bounty.xe.network/XE-13248","body":"## Summary\n\n`lease_accept`/`renew` lock the best R from the last 4 epochs instead of the epoch at attestation. Demonstrated on a private devnet: hand-built `lease_accept` locked epoch.1's R=3000 while the current epoch R=1000; settle minted 52,500 mXE vs 17,500 honest (**3.00× over-mint**). A nonexistent triple was correctly rejected; an older epoch's triple (including `payout_cap=0`, which disables the Hermite cap) was accepted.\n\n## Evidence\n\n`validateLockedEmissionAt` (`core/ledger.go:2090-2112`) loops over **all** candidates and returns nil on **any** match. `epochAtFn` (`node/node.go:439-463`) returns up to `EpochLockTolerance+1` = 4 most recent epochs (`core/ledger.go:200`, `EpochLockTolerance = 3`). The honest path uses `candidates[0]` (latest) — a hand-crafted accept block is not bound to that. Full PoC: `poc-f8f9f11.md` (includes live R variance across epochs first, then the accept + settle comparison).\n\n## Fix direction\n\nPin R to the attestation epoch; reject `payout_cap=0` triples from older epochs.\n\nMy XE address for any reward: 5422b32c07cf2b2ca53b00c2073be5a895dae3fdf13645c05ebdd1c08864cf8f\n\n— @agngmarley\n\n[poc-f8f9f11.md](https://github.com/user-attachments/files/34686591/poc-f8f9f11.md)","patch_refs":[],"thread":[{"id":12806,"source":"github","source_ref":"7025801374","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as https://bounty.xe.network/XE-0103, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-13248 and says what differs; it is read like any other.","created_at":"2026-11-20T00:05:01+00:00"}]}