[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)
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
core/ledger.go:843—addBlock's conflict-staging path rejects a conflicting lease_renew instead of staging it (no conflict record is created).core/quorum.go:265—promotable(): a staged renew can never validate.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
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.