You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,10 @@ You can override default port numbering system by setting `PORT` and `P2P_PORT`
29
29
#### On Google Coud Platform (GCP)
30
30
31
31
- Deploy code (in common with Node server)
32
+
Set <NUMBER_OF_SHARDS> to 0 if you only want to run a parent chain, or set it to the specific number of shard chains you want to run in addition to the parent chain.
32
33
```
33
34
gcloud init
34
-
sh deploy_gcp.sh {dev|spring|summer} <YOUR_GCP_USER_NAME>
35
+
sh deploy_gcp.sh {dev|spring|summer} <YOUR_GCP_USER_NAME> <NUMBER_OF_SHARDS>
35
36
```
36
37
- Set up Ubuntu machine (if it's on a new VM)
37
38
```
@@ -121,9 +122,10 @@ npm run test_integration
121
122
#### On Google Coud Platform (GCP)
122
123
123
124
- Deploy code (in common with Tracker server)
125
+
Set <NUMBER_OF_SHARDS> to 0 if you only want to run a parent chain, or set it to the specific number of shard chains you want to run in addition to the parent chain.
124
126
```
125
127
gcloud init
126
-
sh deploy_gcp.sh {dev|spring|summer} <YOUR_GCP_USER_NAME>
128
+
sh deploy_gcp.sh {dev|spring|summer} <YOUR_GCP_USER_NAME> <NUMBER_OF_SHARDS>
127
129
```
128
130
- Set up Ubuntu machine (if it's on a new VM)
129
131
```
@@ -133,9 +135,9 @@ sh setup_ubuntu.sh
133
135
```
134
136
source setup_node_gcp.sh
135
137
```
136
-
- Start Node server job
138
+
- Start Node server job (set shard index to 0 if you're running a root chain node)
137
139
```
138
-
sh start_node_gcp.sh {dev|spring|summer} <SERVER_INDEX>
140
+
sh start_node_gcp.sh {dev|spring|summer} <SHARD_INDEX> <SERVER_INDEX>
logger.error(`[${LOG_PREFIX}:${LOG_SUFFIX}] The block_hash value in proposalTx (${block_hash}) and the actual proposalBlock's hash (${proposalBlock.hash}) don't match`);
344
367
returnfalse;
345
368
}
346
-
if(!Block.validateProposedBlock(proposalBlock)){
347
-
logger.error(`[${LOG_PREFIX}:${LOG_SUFFIX}] Proposed block didn't pass the basic checks`);
348
-
returnfalse;
369
+
if(!LIGHTWEIGHT){
370
+
if(!Block.validateProposedBlock(proposalBlock)){
371
+
logger.error(`[${LOG_PREFIX}:${LOG_SUFFIX}] Proposed block didn't pass the basic checks`);
0 commit comments