• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revisionaa3cb8cc422711cd7820b06fc5fceacfdde6df86 (tree)
Time2019-08-19 17:00:26
AuthorHAOYUatHZ <haoyu@prot...>
CommiterHAOYUatHZ

Log Message

fk

Change Summary

Incremental Difference

--- a/toolbar/precog/monitor/connection.go
+++ b/toolbar/precog/monitor/connection.go
@@ -11,7 +11,7 @@ import (
1111
1212 func (m *monitor) connectNodesRoutine() {
1313 // TODO: change name?
14- ticker := time.NewTicker(time.Duration(m.cfg.CheckFreqSeconds*3) * time.Second)
14+ ticker := time.NewTicker(time.Duration(m.cfg.CheckFreqSeconds*2) * time.Second)
1515 for ; true; <-ticker.C {
1616 if err := m.dialNodes(); err != nil {
1717 log.Error(err)
--- a/toolbar/precog/monitor/monitor.go
+++ b/toolbar/precog/monitor/monitor.go
@@ -44,7 +44,7 @@ type monitor struct {
4444 // TODO: set myself as SPV?
4545 func NewMonitor(cfg *config.Config, db *gorm.DB) *monitor {
4646 //TODO: for test
47- cfg.CheckFreqSeconds = 60
47+ cfg.CheckFreqSeconds = 120
4848
4949 dbPath, err := makePath()
5050 if err != nil {
Show on old repository browser