Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ff7e89

Browse files
reformat sync status command to work with bash (base#8)
1 parent fec993f commit 9ff7e89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Note: Some L1 nodes (e.g. Erigon) do not support fetching storage proofs. You ca
3333

3434
Sync speed depends on your L1 node, as the majority of the chain is derived from data submitted to the L1. You can check your syncing status using the `optimism_syncStatus` RPC on the `op-node` container. Example:
3535
```
36-
echo Latest synced block behind by: $((($(date +%s)-$( \
37-
curl -d '{"id":0,"jsonrpc":"2.0","method":"optimism_syncStatus"}' \
38-
-H "Content-Type: application/json" http://localhost:7545 | \
39-
jq -r .result.unsafe_l2.timestamp))/60)) minutes
36+
echo Latest synced block behind by: \
37+
$((($( date +%s )-\
38+
$( curl -d '{"id":0,"jsonrpc":"2.0","method":"optimism_syncStatus"}' -H "Content-Type: application/json" http://localhost:7545 |
39+
jq -r .result.unsafe_l2.timestamp))/60)) minutes
4040
```

0 commit comments

Comments
 (0)