<!-- XE-13248 · [Medium] LockedR cherry-picking — accept/renew can lock a past epoch's higher R (3.00× over-mint demonstrated) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13248>. The page is the record; this is the same page for reading.*

XE-13248 · Bounty

# \[Medium\] LockedR cherry-picking — accept/renew can lock a past epoch's higher R (3.00× over-mint demonstrated)

Closed · duplicate
—claimed Medium
[xe#377](https://github.com/xeprotocol/xe/issues/377)
filed 2026-11-11 12:06 UTC
by agung marley

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   Leasing / ledger

Duplicate of
:   [XE-0103](https://bounty.xe.network/XE-0103) triaging

Tracked
:   —

Updated
:   2026-11-20 00:07 UTC

Told
:   2026-11-20 00:05 UTC

### Patches

None linked.

### History

- [543813](https://bounty.xe.network/log/543813) 2026-11-20 00:06 UTC github.state\_pushed
- [543812](https://bounty.xe.network/log/543812) 2026-11-20 00:06 UTC github.labels
- [543759](https://bounty.xe.network/log/543759) 2026-11-20 00:05 UTC reply.mirrored
- [543499](https://bounty.xe.network/log/543499) 2026-11-20 00:04 UTC proposal.adopted
- [543498](https://bounty.xe.network/log/543498) 2026-11-20 00:04 UTC reply.sent
- [543497](https://bounty.xe.network/log/543497) 2026-11-20 00:04 UTC ticket.status new → closed
- [542029](https://bounty.xe.network/log/542029) 2026-11-20 00:04 UTC proposal.adopted
- [542028](https://bounty.xe.network/log/542028) 2026-11-20 00:04 UTC ticket.facts area
- [542027](https://bounty.xe.network/log/542027) 2026-11-20 00:04 UTC proposal.adopted
- [542026](https://bounty.xe.network/log/542026) 2026-11-20 00:04 UTC ticket.facts
- [542025](https://bounty.xe.network/log/542025) 2026-11-20 00:04 UTC proposal.adopted
- [542024](https://bounty.xe.network/log/542024) 2026-11-20 00:04 UTC ticket.facts

[Full history](https://bounty.xe.network/log?ref=XE-13248) · [JSON](https://bounty.xe.network/v1/tickets/XE-13248) · [markdown](https://bounty.xe.network/XE-13248.md)

### Report

## Summary

`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.

## Evidence

`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).

## Fix direction

Pin R to the attestation epoch; reject `payout_cap=0` triples from older epochs.

My XE address for any reward: 5422b32c07cf2b2ca53b00c2073be5a895dae3fdf13645c05ebdd1c08864cf8f

— @agngmarley

[poc-f8f9f11.md](https://github.com/user-attachments/files/34686591/poc-f8f9f11.md)

### Thread

**Joseph Denne**team2026-11-20 00:05 UTCgithub

Thanks. This is the same finding as https://bounty.xe.network/XE-0103, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-13248 and says what differs; it is read like any other.
