Skip to content

Commit

Permalink
README update, demo.sh fix
Browse files Browse the repository at this point in the history
  • Loading branch information
86667 committed Nov 19, 2019
1 parent 19ce242 commit 5c0b368
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,24 @@

Implementation of the Coordinator daemon, responsible for verifying the operation of Guardnodes in the Commerceblock Covalence system


## Instructions

### Run Coordinator

To run a production instance of the coordinator along with a mongo db database, edit the envs in the [docker compose file](https://github.com/commerceblock/coordinator/blob/develop/docker-compose.yml) and:

`docker-compose up`

Or to test the coordinator locally:

`cargo run`


### Run Demo

`./scripts/demo.sh && cargo run --example demo`
Check out the demo [here](https://commerceblock.readthedocs.io/en/latest/coordinator/index.html#demo).


### Docs

Expand Down
2 changes: 1 addition & 1 deletion scripts/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ domain_asset=$(echo $bid_tx | jq '.vout['$vout'].asset')

inputs="[{\"txid\":\"$bid_txid2\",\"vout\":$vout,\"asset\":$domain_asset}]"
outputs="{\"endBlockHeight\":10,\"requestTxid\":\"$request_txid\",\"pubkey\":\"$pub\",\
\"feePubkey\":\"026a04ab98d9e4774ad806e302dddeb63bea16b5cb5f223ee77478e861bb583eb3\",\
\"feePubkey\":\"029aaa76fcf7b8012041c6b4375ad476408344d842000087aa93c5a33f65d50d92\",\
\"value\":55,\"change\":\"44.999\",\"changeAddress\":\"$addr\",\"fee\":0.001}"

signedtx=`ocl signrawtransaction $(ocl createrawbidtx $inputs $outputs)`
Expand Down

0 comments on commit 5c0b368

Please sign in to comment.