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

v2alpha1: Add NumUnits to Activation and extend request filters #355

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

kacpersaw
Copy link
Contributor

@kacpersaw kacpersaw commented Jun 21, 2024

  • Add NumUnits to Activation message
  • Change name of NodeId filter to SmesherId.
  • Modify Id to allow multiple entries.

@kacpersaw kacpersaw requested review from pigmej and poszu June 21, 2024 10:39
@kacpersaw kacpersaw merged commit 11b7dbf into master Jun 21, 2024
1 check passed
@kacpersaw kacpersaw deleted the v2alpha1-extend-atx branch June 21, 2024 10:47
@@ -13,6 +13,7 @@ message Activation {
string coinbase = 6;
uint64 weight = 7;
uint64 height = 8;
uint32 num_units = 9; // number of PoST data commitment units
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT:

Suggested change
uint32 num_units = 9; // number of PoST data commitment units
uint32 units = 9; // number of effective PoST data commitment units

This value might be smaller than the actual number of units in the ATX because we take the minimum of previous ATX and the current ATX. So somebody grewing their space and publishing ATXs with increasing size gets:

  1. units = 4 SU, effective units = 4 SU
  2. units = 8 SU, effective units = 4 SU
  3. units = 8 SU, effective units = 8 SU

If you need the exact number of units (as it results from the commited PoST size in this ATX), we would need to read it from the ATX blob.

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

Successfully merging this pull request may close these issues.

3 participants