Skip to content

Commit 311070e

Browse files
committed
set latest block height
1 parent 33f3bf9 commit 311070e

File tree

1 file changed

+6
-10
lines changed
  • hermes/service/hermes/fingerprint

1 file changed

+6
-10
lines changed

hermes/service/hermes/fingerprint/fg.go

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import (
1919
)
2020

2121
const (
22-
runTaskInterval = 2 * time.Minute
22+
runTaskInterval = 2 * time.Minute
23+
parseTicketsBlockHeight = 265000
2324
)
2425

2526
// Run stores the latest block hash and height to DB if not stored already
@@ -73,15 +74,10 @@ func (s *fingerprintService) Run(ctx context.Context) error {
7374
}
7475

7576
func (s *fingerprintService) run(ctx context.Context) error {
76-
log.WithContext(ctx).Info("getting Activation tickets, checking non seed records.")
77-
nonseed, err := s.store.CheckNonSeedRecord(ctx)
78-
if err != nil {
79-
log.WithContext(ctx).WithError(err).Error("unable to get nonseed record")
80-
} else if !nonseed {
81-
log.WithContext(ctx).Info("No NonSeed Record, set latestBlockHeight to 0")
82-
s.latestNFTBlockHeight = 265000 //TODO: REMOVE THIS - SET TO 0
83-
s.latestSenseBlockHeight = 265000 //TODO: REMOVE THIS - SET TO 0
84-
}
77+
log.WithContext(ctx).Infof("getting Activation tickets, set latest block height to %d", parseTicketsBlockHeight)
78+
79+
s.latestNFTBlockHeight = parseTicketsBlockHeight
80+
s.latestSenseBlockHeight = parseTicketsBlockHeight
8581

8682
senseErr := s.parseSenseTickets(ctx)
8783
nftErr := s.parseNFTTickets(ctx)

0 commit comments

Comments
 (0)