hiero-ledger / hiero-ledger/hiero-consensus-node

NodeDelete clears pending staking rewards without distributing them

Open
#25,701 2 comments 0 reactions 1 assignee View on GitHub

@tinker-michaelj is already working on this.

Since Jun 2, 2026.

Dominant language
Java
Stars
407
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

**Summary**
When a node is deleted via a NodeDelete HAPI transaction, any pending staking rewards for accounts staked to that node are silently lost. The rewards are neither distributed nor persisted before the node is removed from the address book.

**Steps to reproduce**

- Stake one or more accounts to nodeX and allow pending rewards to accumulate.
- In the same release, submit a NodeDelete transaction targeting nodeX.
- Observe that stakers can still collect pending rewards while the node is in a deleted-but-not-removed state.
- Once nodeX is fully removed from the address book, attempt to collect rewards for any account that was staked to nodeX.
- Observe that pending rewards are now 0 — they have been lost.

**Expected behavior**
All pending staking rewards for accounts staked to a deleted node should be distributed or durably persisted as part of the NodeDelete operation, before the node is removed from the address book.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.