Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
hotfix for relay node to check if blockheight is more than 9 blocks b…
Browse files Browse the repository at this point in the history
…ehind to prevent continious rebuilds
  • Loading branch information
reConNico committed Mar 19, 2018
1 parent 1f0f53a commit 8fe7332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/monitor.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

#==============================================================================
# description : Monitors the current forging node.
# description : Monitors the blockheight of the nodes.
# @author : Nico Allers <info@reconnico.com>
#==============================================================================

Expand Down Expand Up @@ -58,7 +58,7 @@ monitor_nodes()

## check block height of relay node
block_height ${node_relay}
if [ -z ${blockheight_net} ] || [ $((${blockheight_net} - ${blockheight_node})) -gt 1 ]; then
if [ -z ${blockheight_net} ] || [ $((${blockheight_net} - ${blockheight_node})) -gt 9 ]; then
## relay is out of sync
SECONDS=0
lock_create
Expand Down

0 comments on commit 8fe7332

Please sign in to comment.