From a074d8f09b83dcb4b3a52464c1113d76c2139574 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 5 Sep 2019 16:10:57 +1000 Subject: [PATCH] Update book --- book/src/interop-cheat-sheet.md | 10 ++++++++++ book/src/interop-scenarios.md | 5 ++++- book/src/interop-tips.md | 1 - 3 files changed, 14 insertions(+), 2 deletions(-) delete mode 100644 book/src/interop-tips.md diff --git a/book/src/interop-cheat-sheet.md b/book/src/interop-cheat-sheet.md index ea7794c33..7fea539ea 100644 --- a/book/src/interop-cheat-sheet.md +++ b/book/src/interop-cheat-sheet.md @@ -9,6 +9,7 @@ interop testing. - [Avoid port clashes when starting multiple nodes](#port-bump) - [Specify a custom slot time](#slot-time) - Using the beacon node HTTP API: + - [Pretty-print the genesis state and state root](#http-state) - [Curl a node's ENR](#http-enr) - [Curl a node's connected peers](#http-peer-ids) - [Curl a node's local peer id](#http-peer-id) @@ -82,6 +83,15 @@ $ ./beacon_node testnet -t 500 recent 8 Examples assume there is a Lighthouse node exposing a HTTP API on `localhost:5052`. Responses are JSON. + +### Pretty-print the genesis state and state root + +Returns the genesis state and state root in your terminal, in YAML. + +``` +$ curl --header "Content-Type: application/yaml" "localhost:5052/beacon/state?slot=0" +``` + ### Get the node's ENR diff --git a/book/src/interop-scenarios.md b/book/src/interop-scenarios.md index dc8789362..5e44d822a 100644 --- a/book/src/interop-scenarios.md +++ b/book/src/interop-scenarios.md @@ -25,8 +25,11 @@ cheat-sheet](./interop-cheat-sheet.md). To start a brand-new beacon node (with no history) use: ``` -$ ./beacon_node testnet -f quick 8 1567222226 +$ ./beacon_node testnet -f quick 8 ``` + +Where `GENESIS_TIME` is in [unix time](https://duckduckgo.com/?q=unix+time&t=ffab&ia=answer). + > Notes: > > - This method conforms the ["Quick-start diff --git a/book/src/interop-tips.md b/book/src/interop-tips.md deleted file mode 100644 index 0d52e896a..000000000 --- a/book/src/interop-tips.md +++ /dev/null @@ -1 +0,0 @@ -# Interop Tips & Tricks