Skip to content

Commit

Permalink
Merge branch 'fix-rpc-health-check-auth' into 'dev'
Browse files Browse the repository at this point in the history
Add authentication for btc rpc health-check

See merge request ergo/rosen-bridge/watcher!277
  • Loading branch information
vorujack committed Jun 18, 2024
2 parents 5af3be4 + 98e6da8 commit 2710eb9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .changeset/wild-games-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
'@rosen-bridge/watcher': patch
---
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- Update koios default url to v1
- Add fee constraints at observation validation
- Use authentication for bitcoin rpc health-check
- Updated dependencies:
- @rosen-bridge/scanner
- @rosen-bridge/address-extractor
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@rosen-bridge/observation-extractor": "^4.4.5",
"@rosen-bridge/permit-check": "^0.1.1",
"@rosen-bridge/scanner": "^4.0.1",
"@rosen-bridge/scanner-sync-check": "^0.2.0",
"@rosen-bridge/scanner-sync-check": "^0.3.0",
"@rosen-bridge/watcher-data-extractor": "^6.0.1",
"@rosen-bridge/wid-check": "^0.1.1",
"@rosen-bridge/winston-logger": "0.2.1",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/healthCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ class HealthCheckSingleton {
scanner.observationScanner.name(),
getConfig().healthCheck.bitcoinScannerWarnDiff,
getConfig().healthCheck.bitcoinScannerCriticalDiff,
getConfig().bitcoin.rpc!.url
getConfig().bitcoin.rpc!.url,
getConfig().bitcoin.rpc!.username,
getConfig().bitcoin.rpc!.password
);
} else if (getConfig().bitcoin.type === ESPLORA_TYPE) {
bitcoinScannerSyncCheck = new BitcoinEsploraScannerHealthCheck(
Expand Down

0 comments on commit 2710eb9

Please sign in to comment.