-
Notifications
You must be signed in to change notification settings - Fork 153
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
Implement Basic Tipset #8
Comments
pub fn NewTipSet { // Also sorts tickets from smallest to largest; sorted array so index 0 is the smallest ticket in tipset // returns TipSet type Will also need to implement fn for identifying and attaching unique tipSetKey |
Included: tipset methods
block methods
tipsetkey methods
ticket methods:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is simply a set of blocks. The blocks must be stored in order of their corresponding ticket. There seems to be a notion of keys in the Go-flecoin implementation, and a separate CID set in Lotus.
Go-filecoin: https://github.com/filecoin-project/go-filecoin/blob/8345455565fb429ebc2eb7c1e3af03c5f7a92b22/internal/pkg/block/tipset.go
Lotus: https://github.com/filecoin-project/lotus/blob/4f9947a27b974512477342ce092381c40a5e8ac9/chain/types/tipset.go
The text was updated successfully, but these errors were encountered: