File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
hermes/service/hermes/fingerprint Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ import (
1919)
2020
2121const (
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
7576func (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 )
You can’t perform that action at this time.
0 commit comments