Skip to content

Commit

Permalink
Merge branch 'rpc-authentication' into 'dev'
Browse files Browse the repository at this point in the history
Add rpc authentication configuration

See merge request ergo/rosen-bridge/operation!36
  • Loading branch information
zargarzadehm committed Jun 18, 2024
2 parents 883da0f + 2074db9 commit e553a14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/watcher/deploy-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ As a Bitcoin watcher, you should specify these configurations under `bitcoin` ke
```yaml
type: rpc
rpc:
url: YOUR_RPC_URL
url: 'YOUR_RPC_URL'
username: 'YOUR_RPC_USERNAME'
password: 'YOUR_RPC_PASSWORD'
```

or
Expand All @@ -318,6 +320,8 @@ esplora:

> Note: If you don't specify an esplora url, it will use the https://blockstream.info by default, but in case you're using RPC as your source you should specify your bitcoin node instance RPC url.

> Note: RPC authentication configuration is optional, if you're using a public node you don't need to add username and password.

> Note: You can use both configuration, but using RPC is recommended. An RPC connection to a bitcoin node is much faster and does not have limits on fetching data.

2. Set your watcher's initial height, where you start observing and reporting events. Like the Ergo network, we highly recommend using the latest block as your initial point. You should specify the initial block height.
Expand Down Expand Up @@ -356,6 +360,8 @@ bitcoin:
type: rpc
rpc:
url: 'YOUR_BITCOIN_RPC_URL'
username: 'YOUR_RPC_USERNAME'
password: 'YOUR_RPC_PASSWORD'
initial:
height: LATEST_BITCOIN_HEIGHT
observation:
Expand Down

0 comments on commit e553a14

Please sign in to comment.