Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include reserved part of 0.0.800 balance in end-of-period NodeStakeUpdateTransaction #7946

Closed
tinker-michaelj opened this issue Aug 10, 2023 · 1 comment

Comments

@tinker-michaelj
Copy link
Collaborator

tinker-michaelj commented Aug 10, 2023

Problem

The synthetic NodeStakeUpdateTransactionBody does not include several values that mirror node operators would need to conveniently the amount of the 0.0.800 balance that is "reserved " to pay staking rewards earned but not collected.

Solution

Add protobuf fields

message NodeStakeUpdateTransactionBody {
  ...

  /**
   * The amount of the staking reward funds (account 0.0.800) reserved to pay pending rewards that 
   * have been earned but not collected.
   */
  int64 reserved_staking_rewards = 10;

  /**
   * The unreserved balance of account 0.0.800 at the close of the just-ending period; this value is 
   * used to compute the HIP-782 balance ratio.
   */
  int64 unreserved_staking_reward_balance = 11;

  /**
   * The unreserved tinybar balance of account 0.0.800 required to achieve the maximum per-hbar reward 
   * rate; please see HIP-782 for details.
   */
  int64 reward_balance_threshold = 12;

  /**
   * The maximum amount of tinybar that can be staked for reward while still achieving the maximum 
   * per-hbar reward rate; please see HIP-782 for details.
   */
  int64 max_stake_rewarded = 13;
}

and populate them in the obvious way.

Alternatives

No response

@tinker-michaelj
Copy link
Collaborator Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant