<!-- XE-0449 · [Medium] core: lease_renew is missing from ValidateStagedBlock — conflicting renews are rejected at ingest instead of staged, so conflict resolution never engages (opposite direction of #52) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0449>. The page is the record; this is the same page for reading.*

XE-0449 · Bounty

# \[Medium\] core: lease\_renew is missing from ValidateStagedBlock — conflicting renews are rejected at ingest instead of staged, so conflict resolution never engages (opposite direction of #52)

Closed · duplicate
—claimed Medium
[xe#257](https://github.com/xeprotocol/xe/issues/257)
filed 2026-11-04 09:24 UTC
by Fahri Raditya Arrifudin

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   —

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-10 00:11 UTC

Told
:   2026-11-05 22:10 UTC

### Patches

- [xe#262](https://github.com/xeprotocol/xe/pull/262) open by tipprb
  fix(core): add BlockLeaseRenew validation to ValidateStagedBlock (fixes #257)

### History

- [9672](https://bounty.xe.network/log/9672) 2026-11-05 22:11 UTC github.state\_pushed
- [9671](https://bounty.xe.network/log/9671) 2026-11-05 22:11 UTC github.labels
- [9631](https://bounty.xe.network/log/9631) 2026-11-05 22:10 UTC reply.mirrored
- [9612](https://bounty.xe.network/log/9612) 2026-11-05 22:10 UTC reply.sent
- [9611](https://bounty.xe.network/log/9611) 2026-11-05 22:10 UTC proposal.adopted
- [9610](https://bounty.xe.network/log/9610) 2026-11-05 22:10 UTC proposal.adopted
- [9609](https://bounty.xe.network/log/9609) 2026-11-05 22:10 UTC ticket.status triaging → closed
- [9608](https://bounty.xe.network/log/9608) 2026-11-05 22:10 UTC proposal.adopted
- [9607](https://bounty.xe.network/log/9607) 2026-11-05 22:10 UTC ticket.facts
- [9606](https://bounty.xe.network/log/9606) 2026-11-05 22:10 UTC proposal.adopted
- [9605](https://bounty.xe.network/log/9605) 2026-11-05 22:10 UTC ticket.facts
- [7527](https://bounty.xe.network/log/7527) 2026-11-05 14:02 UTC proposal.created

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

### Report

**Suggested severity: Medium**

**Duplicate check:** swept the full live tracker. #52 is the *opposite* direction (staged validation too **lax** — accepts lease blocks that full admission rejects); #183 is the cross-account merge rule; #84 is the binary codec; #162/#155/#97/#92 are other lease\_renew defects. No issue covers `lease_renew` being **missing** from `ValidateStagedBlock`.

Reviewed at commit `02e9641b0ac64437f57e09d63301f88cce61a802`.

## Summary

`ValidateStagedBlock` (`core/ledger.go:2737-2872`) has cases for every block type except `BlockLeaseRenew`, which falls to `default: "staged block: unknown type"`. A conflicting `lease_renew` is therefore **rejected outright at ingest** instead of being staged as a conflict — no conflict record is created, and the representative-voting resolution machinery never engages. First-seen block wins permanently; nodes that observed different renews first keep divergent chains for that account forever.

## Evidence — all three conflict paths are affected

1. `core/ledger.go:843` — `addBlock`'s conflict-staging path rejects a conflicting lease\_renew instead of staging it (no conflict record is created).
2. `core/quorum.go:265` — `promotable()`: a staged renew can never validate.
3. `core/quorum.go:309` — `confirmConflict()`: staged renew winner → "refusing promotion".

Observed (PoC against a copy of the repo, original untouched):

```
R1 added on-chain: 6b17c0885c51
R2 add result: conflict block: staged block: unknown type: lease_renew
TEST 1 — ValidateStagedBlock(lease_renew): staged block: unknown type: lease_renew
```

## Trigger

The account key must produce two validly-signed renews at the same position (double-sign) — realistic via HA key-sharing across nodes, CLI retry after an ambiguous failure, or concurrent renew invocations. Not forgeable by third parties. Every other block type that conflicts is staged and resolved by representative voting (≥67%); for lease\_renew the resolution machinery never engages.

## Impact

Permanent, unhealable chain divergence for the affected account: nodes that observed different renews first never reconcile, and the conflict is invisible to `GET /conflicts` because no conflict record exists.

**Fix:** add a `case BlockLeaseRenew:` mirroring `validateAndAddLeaseRenew`'s balance/escrow checks.

### Thread

**Joseph Denne**team2026-11-05 22:10 UTCgithub

Thanks. This is the same finding as https://bounty.xe.network/XE-0276, 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, reply with what differs and we will look again.
