Skip to content

Commit

Permalink
Updated to using latest plasma-mvp-sidechain docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
kejace committed Apr 11, 2019
1 parent 202a74a commit 1ca24cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
18 changes: 15 additions & 3 deletions README.md
Expand Up @@ -7,13 +7,24 @@
- Set [GOPATH environment variable](https://github.com/golang/go/wiki/SettingGOPATH)
- [dep](https://golang.github.io/dep/docs/installation.html)

## Easy install
## Easy install


We now provide a super simple way to run the test-suite. It only depends on docker!

```
> make install
> docker-compose pull
> docker-compose up -d
> sleep 5
> make deploy-and-test
> docker-compose down
```

If you want to run each step manually, you can do something like but note that this currently deploys the contracts twice
```
> make install
> docker-compose pull
> docker-compose up -d cliquebait
> make deploy-contracts
> make write-plasma-toml
Expand All @@ -23,6 +34,7 @@ We now provide a super simple way to run the test-suite. It only depends on dock
> docker-compose down
```


## Setting up `plasma-mvp-sidechain` (only once)

1. Install original sources of `plasma-mvp-sidechain` and switch to our custom branch as follow:
Expand Down Expand Up @@ -103,8 +115,8 @@ Make sure you have the tendermint node up

`PLASMA_ADDRESS` is visible after running `plasmad start`. In following example it is `0xe545eaf693277ead76f5d9b4665291b0ac38853c`:
```
plasmad start
I[2046-04-02|14:05:54.360] Starting ABCI with Tendermint module=main
plasmad start
I[2046-04-02|14:05:54.360] Starting ABCI with Tendermint module=main
I[2046-04-02|14:05:54.388] binding to contract address 0xe545eaf693277ead76f5d9b4665291b0ac38853c module=main
...
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -5,7 +5,7 @@ services:
ports:
- "8545:8545"
plasma:
image: docker.kube-system.svc.cluster.local/foam/plasma-mvp-sidechain:latest
image: foamspace/plasma-mvp-sidechain:latest
ports:
- "1317:1317"
- "26657:26657"
Expand Down
4 changes: 2 additions & 2 deletions plasma.toml
@@ -1,6 +1,6 @@
plasma_block_commitment_rate = "2s"
is_operator = "false"
ethereum_plasma_contract_address = "0x788008b8fa2306388fbdabca2af413977df6098a"
ethereum_plasma_contract_address = "0x9284f22bd1613789ace60c54e9295a480e7a3e1d"
ethereum_operator_privatekey = ""
ethereum_nodeurl = "http://cliquebait:8545"
ethereum_finality = "18"
ethereum_finality = "3"

0 comments on commit 1ca24cc

Please sign in to comment.