Golang implemented sidechain for Bytom
Revision | aa3cb8cc422711cd7820b06fc5fceacfdde6df86 (tree) |
---|---|
Time | 2019-08-19 17:00:26 |
Author | HAOYUatHZ <haoyu@prot...> |
Commiter | HAOYUatHZ |
fk
@@ -11,7 +11,7 @@ import ( | ||
11 | 11 | |
12 | 12 | func (m *monitor) connectNodesRoutine() { |
13 | 13 | // 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) | |
15 | 15 | for ; true; <-ticker.C { |
16 | 16 | if err := m.dialNodes(); err != nil { |
17 | 17 | log.Error(err) |
@@ -44,7 +44,7 @@ type monitor struct { | ||
44 | 44 | // TODO: set myself as SPV? |
45 | 45 | func NewMonitor(cfg *config.Config, db *gorm.DB) *monitor { |
46 | 46 | //TODO: for test |
47 | - cfg.CheckFreqSeconds = 60 | |
47 | + cfg.CheckFreqSeconds = 120 | |
48 | 48 | |
49 | 49 | dbPath, err := makePath() |
50 | 50 | if err != nil { |