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

Only update `NodeStakingInfo` for whole hbar changes to `stake`

Open
#15,919 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

### Problem

We often include a `MapUpdateChange` in the block stream for a `NodeStakingInfo` that is actually identical because the staking account's balance changed---but not by a whole hbar.

### Solution

Avoid such updates.

### Alternatives

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the block stream's MapUpdateChange handling for NodeStakingInfo and how fractional balance changes affect stake. Confirm the existing behavior and identify the relevant test coverage; the work is done when updates are emitted only for whole-hbar stake changes and redundant updates are no longer produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
blockchain
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.