{"id":"XE-0449","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"257","source_url":"https://github.com/xeprotocol/xe/issues/257","reporter_id":190,"title":"[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)","area":null,"claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"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-04T09:26:12.800865+00:00","updated_at":"2026-11-10T00:11:32.371777+00:00","source_created_at":"2026-11-04T09:24:35+00:00","told_at":"2026-11-05T22:10:59+00:00","status_changed_at":"2026-11-05T22:10:49.595114+00:00","url":"https://bounty.xe.network/XE-0449","body":"**Suggested severity: Medium**\n\n**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`.\n\nReviewed at commit `02e9641b0ac64437f57e09d63301f88cce61a802`.\n\n## Summary\n`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.\n\n## Evidence — all three conflict paths are affected\n1. `core/ledger.go:843` — `addBlock`'s conflict-staging path rejects a conflicting lease_renew instead of staging it (no conflict record is created).\n2. `core/quorum.go:265` — `promotable()`: a staged renew can never validate.\n3. `core/quorum.go:309` — `confirmConflict()`: staged renew winner → \"refusing promotion\".\n\nObserved (PoC against a copy of the repo, original untouched):\n```\nR1 added on-chain: 6b17c0885c51\nR2 add result: conflict block: staged block: unknown type: lease_renew\nTEST 1 — ValidateStagedBlock(lease_renew): staged block: unknown type: lease_renew\n```\n\n## Trigger\nThe 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.\n\n## Impact\nPermanent, 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.\n\n**Fix:** add a `case BlockLeaseRenew:` mirroring `validateAndAddLeaseRenew`'s balance/escrow checks.\n","patch_refs":[{"id":270,"repo":"xeprotocol/xe","kind":"pr","ref":"262","title":"fix(core): add BlockLeaseRenew validation to ValidateStagedBlock (fixes #257)","url":"https://github.com/xeprotocol/xe/pull/262","note":"","state":"open","author":"tipprb","added_by":"desk","created_at":"2026-11-04T10:05:10.494053+00:00"}],"thread":[{"id":432,"source":"github","source_ref":"6670862587","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as https://bounty.xe.network/XE-0276, 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, reply with what differs and we will look again.","created_at":"2026-11-05T22:10:59+00:00"}]}