Code Monkey home page Code Monkey logo

Comments (2)

ey51 avatar ey51 commented on May 27, 2024
  1. (blue) blocks that have block.acceptingBlockHash should be blue. -- by the way, this property will soon be renamed to block.mergingChainBlock

  2. (blue) updates to this property are received via the MQTT notification dag/selected-parent-chain.

Implementation Details:
(colorless) 2.0. the list of blocks in dag/selected-parent-chain.removedBlockHashes should have their property block.isChainBlock set to false.
(colorless) 2.1. the list of blocks in dag/selected-parent-chain.removedBlockHashes should be used to clear the property block.acceptingBlockHash of any other blocks that reference one of the blocks in dag/selected-parent-chain.removedBlockHashes as their acceptingBlockHash.
(blue) 2.2. the list of blocks in dag/selected-parent-chain.addedChainBlocks should have their property block.isChainBlock set to true.
(blue) 2.3. for each block i in dag/selected-parent-chain.addedChainBlocks: the list of blocks in dag/selected-parent-chain.addedChainBlocks[i].acceptedBlockHashes should add the property block.acceptingBlockHash = dag/selected-parent-chain.addedChainBlocks[i]

  1. (blue) The selected tip = the chain block with the highest blue score is blue by definition. (actually all chain blocks are blue by definition)

  2. (colorless) Any other tip is color-less by definition.

  3. (colorless) Any block that has only color-less blocks pointing at it is also color-less by definition.

  4. (red) Blocks that are not blue AND are not color-less are red by definition.

from dagviz.

ey51 avatar ey51 commented on May 27, 2024

With this done, the Highlight New setting becomes unnecessary.
image

from dagviz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.