ethresearch / sharding-p2p-poc

Proof of Concept of Ethereum Serenity Peer-to-Peer Layer on libp2p PubSub System
40 stars 19 forks source link

Support bootstrapping for nodes when starting #35

Closed mhchia closed 6 years ago

mhchia commented 6 years ago

What was wrong?

https://github.com/ethresearch/sharding-p2p-poc/issues/31

How was it fixed?

Example: specify that we want the node to bootstrap, and bootnodes are /ip4/127.0.0.1/tcp/10000/ipfs/QmS5QmciTXXnCUCyxud5eWFenUMAmvAWSDa1c7dvdXRM and /ip4/127.0.0.1/tcp/10001/ipfs/QmexAnfpHrhMmAC5UNQVS8iBuUUgDrMbMY17Cck2gKrqeX. The format of an address should be Human-readable multiaddr, so basically in our case is /ip4/{ip}/tcp/{port}/ipfs/{peerID}

./sharding-p2p-poc -bootstrap=true -bootnodes=/ip4/127.0.0.1/tcp/10000/ipfs/QmS5QmciTXXnCUCyxud5eWFenUMAmvAWSDa1c7dvdXRMZ7,/ip4/127.0.0.1/tcp/10001/ipfs/QmexAnfpHrhMmAC5UNQVS8iBuUUgDrMbMY17Cck2gKrqeX

Cute Animal Picture

put a cute animal picture link inside the parentheses

mhchia commented 6 years ago

cc @ChihChengLiang