diff --git a/.changeset/wild-games-swim.md b/.changeset/wild-games-swim.md new file mode 100644 index 0000000..7e5c82f --- /dev/null +++ b/.changeset/wild-games-swim.md @@ -0,0 +1,3 @@ +--- +'@rosen-bridge/watcher': patch +--- diff --git a/CHANGELOG.md b/CHANGELOG.md index 3194932..ab0b934 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package-lock.json b/package-lock.json index 90178bf..e1263bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,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", @@ -2334,9 +2334,9 @@ } }, "node_modules/@rosen-bridge/scanner-sync-check": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@rosen-bridge/scanner-sync-check/-/scanner-sync-check-0.2.0.tgz", - "integrity": "sha512-sHrug14huk7q5Da1kYJPRyyWEehi9Rj1+lA2lhN12ZJWGAbUyvCbO8U4zfQFDEUbsC4UDus+vodOCTPmKM8BzA==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@rosen-bridge/scanner-sync-check/-/scanner-sync-check-0.3.0.tgz", + "integrity": "sha512-263Aauf0e4VjFEOy9pzC3+HPFSGf8vYpUP5CV9FnZSVmPfr8Q4R7Xic+uifqUZv24vXdCP0EwsqmGlSo2hBVvw==", "dependencies": { "@apollo/client": "^3.9.11", "@blockfrost/blockfrost-js": "^5.5.0", @@ -14572,9 +14572,9 @@ } }, "@rosen-bridge/scanner-sync-check": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@rosen-bridge/scanner-sync-check/-/scanner-sync-check-0.2.0.tgz", - "integrity": "sha512-sHrug14huk7q5Da1kYJPRyyWEehi9Rj1+lA2lhN12ZJWGAbUyvCbO8U4zfQFDEUbsC4UDus+vodOCTPmKM8BzA==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@rosen-bridge/scanner-sync-check/-/scanner-sync-check-0.3.0.tgz", + "integrity": "sha512-263Aauf0e4VjFEOy9pzC3+HPFSGf8vYpUP5CV9FnZSVmPfr8Q4R7Xic+uifqUZv24vXdCP0EwsqmGlSo2hBVvw==", "requires": { "@apollo/client": "^3.9.11", "@blockfrost/blockfrost-js": "^5.5.0", diff --git a/package.json b/package.json index 13602df..16f5ef5 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/utils/healthCheck.ts b/src/utils/healthCheck.ts index fd70ad7..66fa288 100644 --- a/src/utils/healthCheck.ts +++ b/src/utils/healthCheck.ts @@ -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(