ontio / ontology

Official Go implementation of the Ontology protocol. https://dev-docs.ont.io/#/
GNU Lesser General Public License v3.0
829 stars 290 forks source link

implement p2p subnet protocol #1224

Closed laizy closed 4 years ago

Honglei-Cong commented 4 years ago

Is there any document about the feature requirements and its design?

laizy commented 4 years ago

here is a Chinese version doc https://github.com/laizy/ontology/blob/cfa22e72806c68a6796e8cfd64b032171ff11191/docs/specifications/p2p-subnet-CN.md

Honglei-Cong commented 4 years ago

IMHO, P2Pserver.WaitForPeersStart need some updates

Honglei-Cong commented 4 years ago

here is a Chinese version doc https://github.com/laizy/ontology/blob/cfa22e72806c68a6796e8cfd64b032171ff11191/docs/specifications/p2p-subnet-CN.md

can not comments on the doc.

about mask, there're 4 kinds of ip addr A: non-subnet, non-mask B: subnet, non-mask C: non-subnet, masked D: subnet & masked

about get member response, it could be: A -> A B -> A? + B C -> A + C D -> A? + B + C + D

any idea?