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

FIP-0086: Specify power table scaling & comm tree #983

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Conversation

Stebalien
Copy link
Member

This patch specifies the power table scaling discussed in our standups, scaling power between zero and 0xFFFF. I've also been careful to specify the correct inequalities and rounding.

(honestly, all this would be better specified as pseudo-python)

  • I've added a Commitments field to the TipSet object, which we'll leave empty for now, but we'll eventually fill with a Commitments Merkle Tree.
  • I did not end up removing the PowerTable from the TipSet object because it makes it possible to validate a Finality Certificate without having to look at the Commitments tree at all.

I've left the PowerTable directly in the struct for convenience. It also
means we can reduce scope and punt the commitment tree specifics into
the future.

I've also:

1. Redefined the Tipset as a list of CIDs.
2. Clarified that the power table is a bare CBOR list (no wrapping
structure).
This patch specifies the power table scaling discussed in our standups,
scaling power between zero and 0xFFFF. I've also been careful to specify
the correct inequalities and rounding.

Honestly, all this would be better specified as pseudo-Python.
@@ -270,17 +270,16 @@ type Payload struct {
}

type ECTipset struct {
Epoch int
Epoch uint64
Copy link
Member Author

Choose a reason for hiding this comment

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

drive by

Copy link
Collaborator

@kaitlin-beegle kaitlin-beegle left a comment

Choose a reason for hiding this comment

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

Approved from an editorial perspective. Needs technical review.

@jsoares jsoares changed the title FIP0083: Specify power table scaling & comm tree FIP-0086: Specify power table scaling & comm tree Apr 5, 2024
Copy link
Member

@jsoares jsoares left a comment

Choose a reason for hiding this comment

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

A couple of typos; looks good otherwise. Also fixed the title.

FIPS/fip-0086.md Outdated Show resolved Hide resolved
FIPS/fip-0086.md Outdated Show resolved Hide resolved
Co-authored-by: Jorge M. Soares <547492+jsoares@users.noreply.github.com>
@anorth anorth merged commit 75c550d into master Apr 11, 2024
1 check passed
@anorth anorth deleted the steb/power-table branch April 11, 2024 13:49
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.

None yet

4 participants