Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Aug 28, 2024
1 parent 35472b1 commit 6a79931
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rpcsync/rpc_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
jRPC "github.com/0xPolygon/cdk-rpc/rpc"
)


/*
To activate this you need the build tag `debug`:
- Example of launch.json entry
Expand All @@ -19,14 +18,14 @@ To activate this you need the build tag `debug`:
"mode": "auto",
"buildFlags": "-tags 'debug'",
"program": "cmd/main.go",
This RPC is deployed on port 1025:
- To execute rollbackBatches: lastBatch, accInputHash, l1BlockNumber
curl -X POST http://localhost:1025/ -H "Con -application/json" -d '{"method":"debug_rollbackBatches", "params":[53992, "0x1234", 5159957], "id":1}'
- To executge forceReorg: firstL1BlockNumberToKeep
curl -X POST http://localhost:1025/ -H "Con -application/json" -d '{"method":"debug_forceReorg", "params":[5159956], "id":1}'

*/

func StartRPC(state interface{}) {
cfg := jRPC.Config{
Expand Down

0 comments on commit 6a79931

Please sign in to comment.