Skip to content

Commit

Permalink
Update transaction.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenwes13 committed Jun 20, 2019
1 parent a1fe33f commit fc8fbed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zcncore/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,16 @@ func (t *Transaction) Verify() error {
done := make(chan bool)
go func() {
lburl := fmt.Sprintf("%v%v", sharderurl, LATEST_FINALIZED_BLOCK)
ticker := time.NewTicker(time.Second)
lbticker := time.NewTicker(time.Second)
defer lbticker.Stop()
for true {
select {
case <-ticker.C:
case <-lbticker.C:
req, err := util.NewHTTPGetRequest(lburl)
if err != nil {
Logger.Error(sharderurl, "new get request failed. ", err.Error())
}
res, err = req.Get()
res, err := req.Get()
if err != nil {
Logger.Error(sharderurl, "get error. ", err.Error())
}
Expand Down

0 comments on commit fc8fbed

Please sign in to comment.