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
Visualizing parent chain, confirmations #3
Projects
Comments
ey51
changed the title
Visualizing parent chain, blues and reds
Visualizing parent chain, blue and red blocks
Feb 16, 2020
ey51
changed the title
Visualizing parent chain, blue and red blocks
Visualizing parent chain, confirmations
Feb 25, 2020
Selected Parent Chain - the bold links are better, the green color and dashed lines pattern are nice. Please also add the same bold line to the blocks' border. |
Confirmations - need to provide the dag/selected-parent-chain topic before you can calculate them for blocks. |
Update:
|
Closing this. For block confirmations issue see #13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue is dependent on completion of kaspanet/kasparov#44 (comment)
Current State
Currently blue, red and parent chain blocks are not visualized.
Proposed change
Confirmations obtained in the block object in the responses of API calls are correct up to the time of the response. After that, they need to be re-calculated each time there is a new selected-tip block.
block.confirmations = dag.selected_tip.blue_score - block.accepting_block.blue_score + 1
Blocks with block.confirmations=0 --- they can have no color.
Blocks with block.confirmations>0 --- they can be colored greener the more confirmations they have.
Selected Parent Chain Blocks are blue blocks with isParentChain=true --- they can have a thicker border to signify part of the selected parent chain.
The text was updated successfully, but these errors were encountered: