Skip to content

Commit

Permalink
chore: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Nov 30, 2023
1 parent c6bd89e commit fe8715b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@ $ ordhook scan blocks --interval 767430:767753 --post-to=http://localhost:3000/a
$ ordhook service start --post-to=http://localhost:3000/api/events --config-path=./Ordhook.toml
```

New `http-post` endpoints can also be added dynamically by spinning up a redis server and adding the following section in the `Ordhook.toml` configuration file:
New `http-post` endpoints can also be added dynamically by adding the following section in the `Ordhook.toml` configuration file:

```toml
[http_api]
http_port = 20456
database_uri = "redis://localhost:6379/"
```

Running `ordhook` with the command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ working_dir = "ordhook"
#
# [http_api]
# http_port = 20456
# database_uri = "redis://localhost:6379/"

[network]
mode = "mainnet"
Expand Down Expand Up @@ -140,12 +139,11 @@ When the Ordhook service starts, it is initiated in the background to augment th

### Add `http-post` endpoints dynamically

To enable dynamically posting endpoints to the server, you can spin up the Redis server by enabling the following lines of code in the `Ordhook.toml` file:
Dynamic posting endpoints can be enabled by adding the following settings in the `Ordhook.toml` file:

```toml
[http_api]
http_port = 20456
database_uri = "redis://localhost:6379/"
```

## Run ordhook service
Expand Down
1 change: 0 additions & 1 deletion docs/how-to-guides/how-to-stream-ordinal-activities.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ working_dir = "ordhook"
#
# [http_api]
# http_port = 20456
# database_uri = "redis://localhost:6379/"

[network]
mode = "mainnet"
Expand Down

0 comments on commit fe8715b

Please sign in to comment.