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

swarm config witness amount as 1 but two nodes verify the bp msg. #16

Closed weihaopeng closed 2 years ago

weihaopeng commented 2 years ago

image

then, broadcast the block msg. (different node i)

image

Also, there is a problem that one node send same msg twice. (same node i)

image

ericwangqing commented 2 years ago

@weihaopeng both witness and collector are selected randomly based on the NHashDistance function, which is not accurate  but on average, that means this situation is proper and expected :)