aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJhih-Ming Huang <jm@byzantine-lab.io>2019-09-01 16:25:39 +0800
committerJhih-Ming Huang <jm@byzantine-lab.io>2019-09-01 16:25:39 +0800
commit2cba44a368d7a59f2ea5151c4d027d6b7c7f068c (patch)
tree60c5afcf0abc576d459b604c53850dde1a8ee6fa
parentaf1549650b77c2434ff3ee4ea18ab716d4d0a1fc (diff)
downloadtangerine-monitor-2cba44a368d7a59f2ea5151c4d027d6b7c7f068c.tar.gz
tangerine-monitor-2cba44a368d7a59f2ea5151c4d027d6b7c7f068c.tar.zst
tangerine-monitor-2cba44a368d7a59f2ea5151c4d027d6b7c7f068c.zip
use time.Minute and fix wiki link
-rw-r--r--monitor/monitor.go2
-rw-r--r--monitor/notifier.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/monitor/monitor.go b/monitor/monitor.go
index 5b9e350..a577a75 100644
--- a/monitor/monitor.go
+++ b/monitor/monitor.go
@@ -90,7 +90,7 @@ func NewMonitor(networkID int, backend backendIntf, threshold string) *Monitor {
backend: backend,
tanBalancesCache: tanBalance,
ethBalancesCache: ethBalance,
- checkBalanceDuration: time.Duration(10 * 60 * 1000 * 1000 * 1000),
+ checkBalanceDuration: 10 * time.Minute,
ethThresholdString: threshold,
ethThreshold: ethThreshold,
}
diff --git a/monitor/notifier.go b/monitor/notifier.go
index a89d330..1db570d 100644
--- a/monitor/notifier.go
+++ b/monitor/notifier.go
@@ -71,7 +71,7 @@ Dear Node Operator:
Your full node "` + name + `" is fined.
Please pay the fine, and check your node status.
- Also, please check https://byzantine-lab.gitlab.io/wiki/#/Rules-for-the-node-set?id=penalty for the penalty condition.
+ Also, please check https://tangerine-network.github.io/wiki/#/Rules-for-the-node-set?id=penalty for the penalty condition.
Thanks for your cooperation.