Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand mycelo readme section #213

Merged
merged 2 commits into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,34 @@ To run reconciliation tests on this network:
- Set `network` to match the `ChainID` in the genesis file (not the network ID).
- Point `bootstrap_balances` to the generated `bootstrap_balances.json`.

#### Example

Run the following command to run a local testnet with three validators:
```sh
build/bin/mycelo genesis --buildpath compiled-system-contracts --dev.accounts 2 --newenv tmp/rosetta --mnemonic "miss fire behind decide egg buyer honey seven advance uniform profit renew"
build/bin/mycelo validator-init tmp/rosetta
build/bin/mycelo validator-run tmp/rosetta
```

Get the first validator's enode with the following command:
```sh
build/bin/geth attach tmp/rosetta/validator-00/geth.ipc --exec "admin.nodeInfo"
```

In the `rosetta` repository run the following command to start rosetta:
```sh
go run main.go run \
--geth.genesis ../celo-blockchain/tmp/rosetta/genesis.json \
--geth.binary ../celo-blockchain/build/bin/geth \
--geth.syncmode full \
--geth.gcmode archive \
--datadir ./test-mycelo \
--monitor.initcontracts \
--geth.port 30308 \
--geth.rpcport 8553 \
--geth.bootnodes "<ENODE>"
```

## Releasing rosetta

### Versioning
Expand Down