"fmt"
"net"
"os"
- // "strings"
+ "strings"
"time"
"github.com/jinzhu/gorm"
}
func NewMonitor(cfg *config.Config, db *gorm.DB) *monitor {
+ // for test
+ cfg.CheckFreqSeconds = 1
+
nodeCfg := &vaporCfg.Config{
BaseConfig: vaporCfg.DefaultBaseConfig(),
P2P: vaporCfg.DefaultP2PConfig(),
}
m.sw.DialPeers(addresses)
-
- // TODO: dail nodes, get lantency & best_height
- // TODO: decide check_height("best best_height" - "confirmations")
- // TODO: get blockhash by check_height, get latency
- // TODO: update lantency, active_time and status
return nil
}
// p2p/switch_test.go
// syncManager
// notificationMgr
+
+// TODO: dail nodes, get lantency & best_height
+// TODO: decide check_height("best best_height" - "confirmations")
+// TODO: get blockhash by check_height, get latency
+// TODO: update lantency, active_time and status