Skip to content

Commit

Permalink
more magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbarbie committed Mar 23, 2019
1 parent 1a491a3 commit e0d2c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const onHealthcheckRequest = (req, res) => {
.then((values) => {
const [ localBlockNum, networkBlockNum ] = values;
let responseStatus = networkBlockNum - localBlockNum > MAX_BLOCK_DIFFERENCE ? 500 : 200;
if (localBlockNum < 10000 && networkBlockNum <= 0) { // don't let etherscan f**k us
if (localBlockNum > 10000 && networkBlockNum <= 0) { // don't let etherscan f**k us
responseStatus = 200;
}
res.writeHead(responseStatus, { 'Content-Type': 'text/plain' });
Expand Down

0 comments on commit e0d2c53

Please sign in to comment.