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

Support an `enum EnforceThrottles { YES, NO }` dispatch mode that defaults to `NO`.

Open
#10,849 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

Update `HandleContextImpl.dispatchSyntheticTxn()` to:
- [ ] Accept a new `enum EnforceThrottles { YES, NO }` that defaults to `NO`.
- [ ] Create a `UsageSnapshotStack` analogous to the `RecordListBuilder`; instead of appending `RecordBuilder`'s as dispatches occur, take usage snapshots at the beginnings of dispatches, and support reverting to a particular snapshot.
- [ ] When a child dispatch is throttled, set the child record builder status to `BUSY`.

Contributor guide

Open the contributing guide

Research direction

Start by reading HandleContextImpl.dispatchSyntheticTxn() and the existing RecordListBuilder behavior. Trace how dispatches and RecordBuilder statuses are handled, then define the UsageSnapshotStack flow so snapshots can be taken at dispatch starts and reverted; done means the enum defaults to NO and throttled child dispatches receive BUSY status.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.