Skip to content

Commit 096bc85

Browse files
Nana-ECmgarbsjsync-swirlds
authored
Add pseudo code reference to BN eligibity check (#1425)
Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com> Signed-off-by: Michael Garber <michael.garber@hashgraph.com> Co-authored-by: Michael Garber <michael.garber@hashgraph.com> Co-authored-by: Joseph S. <121976561+jsync-swirlds@users.noreply.github.com>
1 parent 69dc2b3 commit 096bc85

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

HIP/hip-1357.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ hedera-acceptance-decision: Accepted
1414
status: Approved
1515
last-call-date-time: 2026-02-11T07:00:00Z
1616
created: 2025-12-02
17-
updated: 2026-02-10
17+
updated: 2026-03-11
1818
requires: 1056, 1086, 1137
1919
---
2020

@@ -56,13 +56,23 @@ year and converted to the native cryptocurrency to determine the daily reward is
5656
## Specification
5757
During nightly reward fee calculations, when a `Node` in state is found to be eligible for consensus node rewards (based
5858
on participation in enough consensus rounds) the logic may iterate of over the non-null `Node.associated_registered_node`
59-
list. If an entry is found to match a registered node of type `BLOCK_NODE` then the network should issue an additional
59+
list. If an entry is found to match a registered node with an endpoint of type `BlockNodeEndpoint` that declares PUBLISH API support
60+
then the network should issue an additional
6061
`CryptoTransfer` of `(targetYearlyBlockNodeRewardsUsd ($) / # of staking periods per year) * exchangeRate (h/$)`
6162
to the `Node.AccountId`.
6263

6364
This ensures that governing authority members only receive block node rewards if they satisfy both consensus and block
6465
node operation obligations.
6566

67+
The following pseudo-code depicts the logic
68+
```
69+
If CN is eligible for CN rewards
70+
For each RegisteredNode present in Node.associated_registered_node
71+
For each RegisteredServiceEndpoint
72+
If (RegisteredServiceEndpoint.endpoint_type is of type BlockNodeEndpoint) & (BlockNodeEndpoint has endpoint_api of type PUBLISH)
73+
then CN is eligible for block node rewards
74+
```
75+
6676

6777
### Consensus Node Specification
6878

0 commit comments

Comments
 (0)