sharding: address review comments, add observer package

Former-commit-id: 05b8804e0ba81e1fe22f7d930dc16f9e84e1c44c [formerly 52dd670a71f1abdfeb5dfd42c25b9f3ba9e64224]
Former-commit-id: 78bd95882d71a1cd28f442dac17fe8c1bbc34ccb
This commit is contained in:
Raul Jordan
2018-05-22 12:42:49 -04:00
parent 2163001a05
commit 404a1ddad0
7 changed files with 62 additions and 21 deletions

View File

@@ -107,7 +107,7 @@ Our system outlined below follows the [Minimal Sharding Protocol](https://ethres
To deposit ETH and join as a notary in the Sharding Manager Contract, run the following command:
```
geth sharding --protocol "notary" --deposit --datadir /path/to/your/datadir --password /path/to/your/password.txt --networkid 12345
geth sharding --actor "notary" --deposit --datadir /path/to/your/datadir --password /path/to/your/password.txt --networkid 12345
```
This will extract 1000ETH from your account balance and insert you into the SMC's notaries. Then, the program will listen for incoming block headers and notify you when you have been selected as to vote on proposals for a certain shard in a given period. Once you are selected, your sharding node will download collation information to check for data availability on vote on proposals that have been submitted via the `addHeader` function on the SMC.
@@ -117,11 +117,17 @@ Concurrently, you will need to run another node that is tasked with processing t
## Running a Collation Proposal Node
```
geth sharding --protocol "proposer" --datadir /path/to/your/datadir --password /path/to/your/password.txt --networkid 12345
geth sharding --actor "proposer" --datadir /path/to/your/datadir --password /path/to/your/password.txt --networkid 12345
```
This node is tasked with processing pending transactions into blobs within collations by serializing data into collation bodies. It is responsible for submitting proposals (collation headers) to the SMC via the `addHeader` function.
## Running an Observer Node
geth sharding --datadir /path/to/your/datadir --password /path/to/your/password.txt --networkid 12345
Omitting the `--actor` flag will launch a simple observer service attached to the sharding client that is able to listen to changes happening throughout the sharded Ethereum network.
# Making Changes
## Rebuilding the Sharding Manager Contract Bindings