ethresearch / sharding-p2p-poc

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

Add RPC `bootstrap` #114

Closed mhchia closed 5 years ago

mhchia commented 5 years ago

What was wrong?

As described in https://github.com/ethresearch/sharding-p2p-poc/issues/108

How was it fixed?

bootstrap start

# start bootstrapping with the bootnodes specified in the string 
$ sharding-p2p-poc -client bootstrap start bootnodeStr1,bootnodeStr2,...
# example
$ sharding-p2p-poc -rpcport=13002 -client bootstrap start `/ip4/127.0.0.1/tcp/10000/ipfs/QmS5QmciTXXnCUCyxud5eWFenUMAmvAWSDa1c7dvdXRMZ7,/ip4/127.0.0.1/tcp/10001/ipfs/QmexAnfpHrhMmAC5UNQVS8iBuUUgDrMbMY17Cck2gKrqeX`

bootstrap stop

# start bootstrapping with the bootnodes specified in the string 
$ sharding-p2p-poc -client bootstrap stop

Cute Animal Picture

put a cute animal picture link inside the parentheses

mhchia commented 5 years ago

@araskachoi does this CLI fit your needs?

araskachoi commented 5 years ago

@araskachoi does this CLI fit your needs?

Yes! this is what was needed for bootstrapping. It was important to have bootstrapping be available even after the initial startup of the application. Thanks alot for this! I will test this out on my environment and see if anything weird comes up!

mhchia commented 5 years ago

@araskachoi Thank you a lot for the confirmation:) Will get it ready ASAP