This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Getting started
Miguel Mota edited this page Nov 29, 2018
·
2 revisions
Install Docker
Install IPFS
Install c3-go
go get -u github.com/c3systems/c3
Generate a private key
c3-go generate key -o priv.pem
You can start node the node now using the private key to sign blocks. Set difficulty=0
for testing. --uri
specifies the multiaddress which is the port the node will use for libp2p communication.
c3-go node start --pem priv.pem --uri /ip4/0.0.0.0/tcp/3330 --data-dir data --mempool-type memory --difficulty 0
You should see similar output
INFO[0000] [node] 0: /ip4/127.0.0.1/tcp/3330/ipfs/QmYwe8sjJTXh3fYE7jqQciQEPzJ7EqGjj25XGoENQiE67u
source="service.go:167:node.NewFullNode"
INFO[0000] [node] 1: /ip4/10.2.0.94/tcp/3330/ipfs/QmYwe8sjJTXh3fYE7jqQciQEPzJ7EqGjj25XGoENQiE67u
source="service.go:167:node.NewFullNode"
INFO[0000] [node] mempool type is "memory" source="service.go:213:node.NewFullNode"
INFO[0000] [p2p] ipfs read latest stored main chain block zUM7WCZ79bs81ruvqib5EX7Z1w35gU8pUr2YwnKtD6gAbSW5U source="util.go:308:p2p.FetchLatestBlock"