weihaopeng / W3-POC

A large-scale P2P application protocol testbed based on IPFS and Libp2p for testing W3 which is a consensusless blockchain.
MIT License
7 stars 1 forks source link

Node Activities & Messages #2

Open ericwangqing opened 2 years ago

ericwangqing commented 2 years ago

Design and implement the node's activities according to the paper
img

Dev steps

ericwangqing commented 2 years ago

In this dev phase, We should temporarily take off the dynamic & collaboration logics, and make w3 a single node network, in which all the collect -> witness -> mint process are doing by this node.
By this means we could efficiently write and debug the fundamental block building code.

ericwangqing commented 2 years ago

In the developing of W3Node, we should separate of concerns, separate logics in the Two-Stages-Mint(TSM) activities apart from logics in the collaboration among nodes in the W3Network.         

That means each time we change the TSM logic, we can test it under the singleNodeMode, and then the full network mode.  

This kind of separation will make our dev life easier and happier :)

ericwangqing commented 2 years ago

We need to sync collectors, they may have different local-facts at AFW.