Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add epoch info in the getStats API #114

Merged
merged 9 commits into from
May 1, 2024
Merged

Add epoch info in the getStats API #114

merged 9 commits into from
May 1, 2024

Conversation

pshenmic
Copy link
Owner

@pshenmic pshenmic commented Apr 9, 2024

Issue

Backend API missing info about the epoch. This PR brings the current epoch index, startTime and endTime in the /status route path.

Things done

  • Introduced new environment EPOCH_CHANGE_TIME and defaults to 3600000 (1 hour)
  • Implemented an epoch index calculations
  • Added epoch info in /status route path
  • Updated integration test

@pshenmic pshenmic added the backend Related to backend (API) label Apr 9, 2024
@pshenmic pshenmic self-assigned this Apr 9, 2024
Copy link

vercel bot commented Apr 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-explorer-zham ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 11:34am

# Conflicts:
#	packages/api/src/controllers/MainController.js
#	packages/api/src/tenderdashRpc.js
#	packages/api/test/integration/main.spec.js
@pshenmic pshenmic merged commit 3b58ec9 into master May 1, 2024
6 checks passed
@owl352 owl352 deleted the feat/status-epoch branch November 23, 2024 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend (API)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant