From 03517a0eb4ac117776b60fa13094eabd2f3e0e4f Mon Sep 17 00:00:00 2001 From: i-norden Date: Mon, 10 Oct 2022 18:24:24 -0500 Subject: [PATCH] add short description for stats command in the readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index ddbfccd..79ec4d9 100644 --- a/README.md +++ b/README.md @@ -297,3 +297,12 @@ An example config file: ``` * NOTE: `COPY` command on CSVs inserts empty strings as `NULL` in the DB. Passing `FORCE_NOT_NULL ` forces it to insert empty strings instead. This is required to maintain compatibility of the imported statediff data with the data generated in `postgres` mode. Reference: https://www.postgresql.org/docs/14/sql-copy.html + +### Stats + +The binary includes a `stats` command which reports stats for the offline or remote levelDB. + +At this time, the only stat supported is to return the latest/highest block height and hash found the levelDB, this is +useful for determining what the upper limit is for a standalone statediffing process on a given levelDB. + +`./eth-statediff-service stats --config={path to toml config file}`