Get the repo and build:
go get -u github.com/Infnote/infnotechain
cd $GOPATH/src/github.com/Infnote/infnotechain
go build -o /usr/local/bin/ifc ./
ifc run
Don't forget to set GOPATH
correctly and add /usr/local/bin
to your PATH
variable
ifc run -f
run the program at foregroundifc run -d
run the program with debug level logifc stop
stop the background processifc eject
eject config file to/usr/local/etc/infnote/config.yaml
ifc cli
run an interactive command line tool
- Communication starts with "Sync" message which will be responded an "Info"
- Dangled block error trigger "Sync"
- Writing test
- Check if peer connection is still alive by send a info
-
Respond 'Error' when cannot respond correctly - Blocks request strategy
- Refresh connections strategy
- Peers updating strategy
- Validate peer address
- Ranking peers
- Filter invalid peers received from outside
- Check address equivalence then repleace the old one
- Clean boardcast id regularly
- Need some kind of authorization before boardcast
- Ranking strategy
- Bad chain detection
- Bad peer detection
- Peer responding speed
- Peer stability
- Adjust connections graph automatically