Skip to content

Commit

Permalink
Update README.md (erigontech#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAkhunov authored and sam committed Apr 5, 2021
1 parent 5aeab5c commit 14a437f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cmd/rpcdaemon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ After building, run this command to start the daemon locally:
./build/bin/rpcdaemon --chaindata ~/Library/TurboGeth/tg/chaindata --http.api=eth,debug,net,web3
```

Runing RPC daemon locally (with `--chaindata` option) can only be used when turbo-geth node is not running. This mode is mostly convenient for debugging purposes, because we know that the database does not change as we are sending requests to the RPC daemon.
This mode is mostly convenient for debugging purposes, because we know that the database does not change as we are sending requests to the RPC daemon.

Note that we've also specified which RPC commands to enable in the above command.

Expand All @@ -46,6 +46,10 @@ The daemon should respond with something like:
INFO [date-time] HTTP endpoint opened url=localhost:8545...
```

### Running in dual mode

If both `--chaindata` and `--private.api.addr` options are used for RPC daemon, it works in a "dual" mode. This only works when RPC daemon is on the same computer as turbo-geth. In this mode, most data transfer from turbo-geth to RPC daemon happens via shared memory, only certain things (like new header notifications) happen via TPC socket.

## Testing

By default, the `rpcdaemon` serves data from `localhost:8545`. You may send `curl` commands to see if things are working.
Expand Down Expand Up @@ -143,9 +147,10 @@ The following table shows the current implementation status of turbo-geth's RPC
| debug_getModifiedAccountsByHash | Yes | |
| debug_storageRangeAt | Yes | |
| debug_traceTransaction | Yes | |
| debug_traceCall | Yes | |
| | | |
| trace_call | - | not yet implemented (come help!) |
| trace_callMany | - | not yet implemented (come help!) |
| trace_call | Yes | |
| trace_callMany | Yes | |
| trace_rawTransaction | - | not yet implemented (come help!) |
| trace_replayBlockTransactions | - | not yet implemented (come help!) |
| trace_replayTransaction | - | not yet implemented (come help!) |
Expand Down

0 comments on commit 14a437f

Please sign in to comment.