-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add is alive and is healthy endpoints
prettier fix npm format for windows fix local test patch change to sendStatus
- Loading branch information
1 parent
c3c462a
commit d799a64
Showing
5 changed files
with
47 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
diff --git forkSrcPrefix/src/config.ts forkDstPrefix/src/config.ts | ||
index 8b1e6e2e2362e91b7ea955d64c287a6e61f51c48..66202ad5a7f555695c9e7cb04db7a86b0455d4a7 100644 | ||
--- forkSrcPrefix/src/config.ts | ||
+++ forkDstPrefix/src/config.ts | ||
@@ -100,7 +100,8 @@ export const CONFIG: Config = { | ||
diff --git a/src/config.ts b/src/config.ts | ||
index db6061c4..712ab94f 100644 | ||
--- a/src/config.ts | ||
+++ b/src/config.ts | ||
@@ -134,10 +134,10 @@ export const CONFIG: Config = { | ||
generateTxTimestamp: true, | ||
nodelistRefreshInterval: 5000, | ||
nodelistRefreshInterval: 30000, | ||
defaultRequestRetry: 5, | ||
- gasEstimateMethod: 'validator', | ||
+ staticGasEstimate: '0x2DC6C0', | ||
+ gasEstimateMethod: 'replayEngine', | ||
- gasEstimateMethod: 'serviceValidator', //serviceValidator or replayEngine or validator | ||
+ gasEstimateMethod: 'replayEngine', //serviceValidator or replayEngine or validator | ||
gasEstimateInvalidationIntervalInMs: 1000 * 60 * 60 * 2, // 2 hours | ||
gasEstimateUseCache: true, | ||
gasEstimateUseCache: false, | ||
- staticGasEstimate: '0x5B8D80', // comment out rather than delete this line | ||
+ staticGasEstimate: '0x2DC6C0', // comment out rather than delete this line | ||
defaultRequestTimeout: { | ||
default: 2000, | ||
contract: 7000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import express, { Request, Response, Router } from 'express' | ||
import { nestedCountersInstance } from '../utils/nestedCounters' | ||
|
||
export const healthCheckRouter: Router = express.Router() | ||
|
||
healthCheckRouter.get('/is-alive', (req: Request, res: Response) => { | ||
nestedCountersInstance.countEvent('endpoint', 'is-alive') | ||
return res.sendStatus(200) | ||
}) | ||
|
||
healthCheckRouter.get('/is-healthy', (req: Request, res: Response) => { | ||
// TODO: Add actual health check logic | ||
nestedCountersInstance.countEvent('endpoint', 'health-check') | ||
return res.sendStatus(200) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters