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

Entity count discrepancy for schedules and contract storage slots

Open
#20,993 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

Newly added validation - `validateIdCounts` (see https://github.com/hiero-ledger/hiero-consensus-node/pull/20978) discovered that there is a discrepancy between the number of schedule count and contract storage count in specified `EntityCounts` object ( `EntityIdService.ENTITY_COUNTS` singleton) and actual count

```
Schedule count is unexpected ==> expected: <136> but was: <137>
Contract storage count is unexpected ==> expected: <3679847> but was: <3679732
```

The state is taken from TestNet, round 137337115

Contributor guide

Open the contributing guide

Research direction

Start by reading the validateIdCounts validation from PR 20978 and the EntityIdService.ENTITY_COUNTS singleton. Reproduce the comparison against the TestNet state from round 137337115, then trace why schedule and contract storage counts differ and verify that the corrected counts match the actual state.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.