Skip to content

Commit 75dc033

Browse files
committed
fix README formatting
1 parent 623a38f commit 75dc033

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cmd/utils/flags.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ var (
796796
Name: "catalyst",
797797
Usage: "Catalyst mode (eth2 integration testing)",
798798
}
799+
799800
StateDiffFlag = cli.BoolFlag{
800801
Name: "statediff",
801802
Usage: "Enables the processing of state diffs between each block",

statediff/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,18 @@ This state diffing service runs as an auxiliary service concurrent to the regula
7777
### CLI configuration
7878
This service introduces a CLI flag namespace `statediff`
7979

80-
`--statediff` flag is used to turn on the service
81-
`--statediff.writing` is used to tell the service to write state diff objects it produces from synced ChainEvents directly to a configured Postgres database
82-
`--statediff.workers` is used to set the number of concurrent workers to process state diff objects and write them into the database
83-
`--statediff.db` is the connection string for the Postgres database to write to
84-
`--statediff.db.init` indicates whether we need to initialize a new database; set true if its the first time running the process on a given database
85-
`--statediff.dbnodeid` is the node id to use in the Postgres database
86-
`--statediff.dbclientname` is the client name to use in the Postgres database
80+
`--statediff` flag is used to turn on the service
81+
`--statediff.writing` is used to tell the service to write state diff objects it produces from synced ChainEvents directly to a configured Postgres database
82+
`--statediff.workers` is used to set the number of concurrent workers to process state diff objects and write them into the database
83+
`--statediff.db` is the connection string for the Postgres database to write to
84+
`--statediff.dbnodeid` is the node id to use in the Postgres database
85+
`--statediff.dbclientname` is the client name to use in the Postgres database
8786

8887
The service can only operate in full sync mode (`--syncmode=full`), but only the historical RPC endpoints require an archive node (`--gcmode=archive`)
8988

9089
e.g.
9190
`
92-
./build/bin/geth --syncmode=full --gcmode=archive --statediff --statediff.writing --statediff.db=postgres://localhost:5432/vulcanize_testing?sslmode=disable --statediff.db.init=true --statediff.dbnodeid={nodeId} --statediff.dbclientname={dbClientName}
91+
./build/bin/geth --syncmode=full --gcmode=archive --statediff --statediff.writing --statediff.db='postgres://localhost:5432/vulcanize_testing?sslmode=disable' --statediff.dbnodeid={nodeId} --statediff.dbclientname={dbClientName}
9392
`
9493

9594
### RPC endpoints

0 commit comments

Comments
 (0)