Skip to content

Commit

Permalink
Rename GetLatency to GetLatencyAndLastMasterchainSeqno
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed Aug 6, 2024
1 parent 200b105 commit cd331e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/litestorage/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ func (s *LiteStorage) GetAccountDiff(ctx context.Context, account tongo.AccountI
return 0, errors.New("not implemented")
}

func (s *LiteStorage) GetLatency(ctx context.Context) (int64, error) {
func (s *LiteStorage) GetLatencyAndLastMasterchainSeqno(ctx context.Context) (int64, uint32, error) {
blockHeader, err := s.LastMasterchainBlockHeader(ctx)
if err != nil {
return 0, err
return 0, 0, err
}
latency := time.Now().Unix() - int64(blockHeader.GenUtime)
return latency, nil
return latency, blockHeader.Seqno, nil
}

0 comments on commit cd331e7

Please sign in to comment.