File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
bsc/lib/assets/bsc-checker Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ Base node needs a URL to a Full Ethereum Node to validate blocks it receives. Yo
108
108
# Make sure you are in aws-blockchain-node-runners/lib/base
109
109
cd lib/base
110
110
pwd
111
- cp ./sample-configs/.env-sample-rpc .env
111
+ cp ./sample-configs/.env-sample-full .env
112
112
nano .env
113
113
```
114
114
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ BSC_HIGHEST_BLOCK=$(echo $((${BSC_HIGHEST_BLOCK_HEX})))
14
14
BSC_SYNC_BLOCK=$( echo $(( ${BSC_SYNC_BLOCK_HEX} )) )
15
15
BSC_BLOCKS_BEHIND=" $(( BSC_HIGHEST_BLOCK- BSC_SYNC_BLOCK)) "
16
16
17
+ # Handle negative values if current block is bigger than highest block
18
+ if [[ " $BSC_BLOCKS_BEHIND " -lt " 0" ]]; then
19
+ BSC_BLOCKS_BEHIND=0
20
+ fi
21
+
17
22
# Sending data to CloudWatch
18
23
TOKEN=$( curl -s -X PUT " http://169.254.169.254/latest/api/token" -H " X-aws-ec2-metadata-token-ttl-seconds: 21600" )
19
24
INSTANCE_ID=$( curl -H " X-aws-ec2-metadata-token: $TOKEN " -s http://169.254.169.254/latest/meta-data/instance-id)
You can’t perform that action at this time.
0 commit comments