update example command in readme

This commit is contained in:
i-norden 2021-11-12 08:49:06 -06:00
parent 2339b0a5af
commit 4fb92b5358
2 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,7 @@ The service can only operate in full sync mode (`--syncmode=full`), but only the
e.g.
`
./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}
./build/bin/geth --syncmode=full --gcmode=archive --statediff --statediff.writing --statediff.db.type=postgres --statediff.db.driver=sqlx --statediff.db.host=localhost --statediff.db.port=5432 --statediff.db.name=vulcanize_test --statediff.db.user=postgres --statediff.db.nodeid=nodeid --statediff.db.clientname=clientname
`
### RPC endpoints

View File

@ -306,6 +306,7 @@ func (sds *Service) writeLoopWorker(params workerParams) {
// Loop is the main processing method
func (sds *Service) Loop(chainEventCh chan core.ChainEvent) {
log.Info("Starting statediff listening loop")
chainEventSub := sds.BlockChain.SubscribeChainEvent(chainEventCh)
defer chainEventSub.Unsubscribe()
errCh := chainEventSub.Err()