update example command in readme
This commit is contained in:
parent
2339b0a5af
commit
4fb92b5358
@ -100,7 +100,7 @@ The service can only operate in full sync mode (`--syncmode=full`), but only the
|
|||||||
|
|
||||||
e.g.
|
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
|
### RPC endpoints
|
||||||
|
@ -306,6 +306,7 @@ func (sds *Service) writeLoopWorker(params workerParams) {
|
|||||||
|
|
||||||
// Loop is the main processing method
|
// Loop is the main processing method
|
||||||
func (sds *Service) Loop(chainEventCh chan core.ChainEvent) {
|
func (sds *Service) Loop(chainEventCh chan core.ChainEvent) {
|
||||||
|
log.Info("Starting statediff listening loop")
|
||||||
chainEventSub := sds.BlockChain.SubscribeChainEvent(chainEventCh)
|
chainEventSub := sds.BlockChain.SubscribeChainEvent(chainEventCh)
|
||||||
defer chainEventSub.Unsubscribe()
|
defer chainEventSub.Unsubscribe()
|
||||||
errCh := chainEventSub.Err()
|
errCh := chainEventSub.Err()
|
||||||
|
Loading…
Reference in New Issue
Block a user