-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature: Enhanced activations data (for SM 0.2) #139
Comments
So we have basic activation data for clients via the mesh api. What we need to do to provide a decent UX for activations, is to add additional meta-data to activations returned by the api so clients have sufficient data to provide useful information to users and to keep them informed and on top of their activations. Here's an initial proposal for api additions: An activation can only be in one of these states. enum State {
STATE_CREATED = 0; // from post data
STATE_SUBMITTED = 1; // to poet
STATE_GOT_PROOF =2; // from poet
STATE_BROADCASTED = 3; // to p2p net
STATE_MESH =4; // published on mesh
} Add // timestamps are 0 when they are not set
message ActivationExtraData {
uint64 Submitted =1; // timestamp when submitted to poet
uint64 Proof = 2; // proof time
uint64 Broadcast = 3; // broadcast time
uint64 MeshEpoch = 4; // epoch published on mesh (eligibility epoch is this epoch + 1 )
} The first 3 fields will only be non-zero when this activation was created locally by the node that serves the api. In the case of all other activations, only the last field will be non-zero. Based on this data, we would like to display more details about user's activations. Here are rough mocks of activations in smapp. Activations ListAccessible from Activation DetailsNotice the eligibility info in the summary line. If Activation is on mesh on epoch e, then smesher is eligible for rewards in epoch e+1. |
@moshababo - what we talked about - please review. |
Motivation
We'd like to make the non-trivial activations flow transparent to users.
Some activation state is local to the node which submits them to PoET and to the mesh and can't be obtained from the MeshService. We should add to the SmesherService capabilities to provide information about locally created and submitted activations.
Activations Local State
Each of the states has a time-stamp and the last one has an epoch number.
Proposed new functionality
The text was updated successfully, but these errors were encountered: