Skip to content

Commit

Permalink
fix(dead code): removes last submission time from manager (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt authored May 8, 2024
1 parent 0215717 commit 80b0324
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"sync"
"sync/atomic"
"time"

"github.com/dymensionxyz/dymint/gerr"

Expand Down Expand Up @@ -60,7 +59,6 @@ type Manager struct {
// Block production
shouldProduceBlocksCh chan bool
produceEmptyBlockCh chan bool
lastSubmissionTime atomic.Int64

/*
Guard against triggering a new batch submission when the old one is still going on (taking a while)
Expand Down Expand Up @@ -220,7 +218,6 @@ func (m *Manager) UpdateSyncParams(endHeight uint64) {
types.RollappHubHeightGauge.Set(float64(endHeight))
m.logger.Info("Received new syncTarget", "syncTarget", endHeight)
m.SyncTarget.Store(endHeight)
m.lastSubmissionTime.Store(time.Now().UnixNano())
}

func getAddress(key crypto.PrivKey) ([]byte, error) {
Expand Down

0 comments on commit 80b0324

Please sign in to comment.