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

IP address / Port for Validator #192

Merged
merged 11 commits into from
Jul 18, 2024
Merged

IP address / Port for Validator #192

merged 11 commits into from
Jul 18, 2024

Conversation

owl352
Copy link
Collaborator

@owl352 owl352 commented Jul 15, 2024

Issue

Right now, we only have protx hash available from Tenderdash RPC, the host and port of the node is not implemented, so this info is only available in the Core chain.

Users should be able to see ip address and ports of the services running on this validat

Things done

DashCoreRPC class was created (Like TenderdashRPC).
Validator class has been modified, and the ValidatorsController has also been modified.
I also updated README.md and corrected it by adding the missing sections
Now we get this response for the validators

{
  proTxHash: "F60A6BF9EC0794BB0CFD1E0F2217933F4B33EDE6FE810692BC275CA18148AEF0",
  isActive: true,
  proposedBlocksAmount: 5,
  lastProposedBlockHeader: {
    height: 5,
    timestamp: "2024-06-23T13:51:44.154Z",
    hash: "7253F441FF6AEAC847F9E03672B9386E35FC8CBCFC4A7CC67557FCA10E342904",
    l1LockedHeight: 1337,
    appVersion: 1,
    blockVersion: 13,
    validator: "F60A6BF9EC0794BB0CFD1E0F2217933F4B33EDE6FE810692BC275CA18148AEF0"
  },
  proTxInfo: {
    "type": "Evo",
    "collateralHash": "6ce8545e25d4f03aba1527062d9583ae01827c65b234bd979aca5954c6ae3a59",
    "collateralIndex": 19,
    "collateralAddress": "yYK3Kiq36Xmf1ButkTUYb1iCNtJfSSM4KH",
    "operatorReward": 0,
    "confirmations": 214424,
    "state": {
        "version": 2,
        "service": "35.164.23.245:19999",
        "registeredHeight": 850334,
        "lastPaidHeight": 1064721,
        "consecutivePayments": 0,
        "PoSePenalty": 0,
        "PoSeRevivedHeight": 1027671,
        "PoSeBanHeight": -1,
        "revocationReason": 0,
        "ownerAddress": "yWrbg8HNwkogZfqKe1VW8czS9KiqdjvJtE",
        "votingAddress": "yWrbg8HNwkogZfqKe1VW8czS9KiqdjvJtE",
        "platformNodeID": "b5f25f8f70cf8d05c2d2970bdf186c994431d84e",
        "platformP2PPort": 36656,
        "platformHTTPPort": 1443,
        "payoutAddress": "yeRZBWYfeNE4yVUHV4ZLs83Ppn9aMRH57A",
        "pubKeyOperator": "b928fa4e127214ccb2b5de1660b5e371d2f3c9845077bc3900fc6aabe82ddd2e61530be3765cea15752e30fc761ab730"
    }
  }
}

Copy link

vercel bot commented Jul 15, 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 Jul 18, 2024 4:22pm

@owl352 owl352 added the backend Related to backend (API) label Jul 15, 2024
@owl352 owl352 linked an issue Jul 15, 2024 that may be closed by this pull request
packages/api/.env Outdated Show resolved Hide resolved
packages/api/.env Outdated Show resolved Hide resolved
packages/api/src/dashcoreRpc.js Outdated Show resolved Hide resolved
packages/api/src/controllers/ValidatorsController.js Outdated Show resolved Hide resolved
packages/api/src/models/Validator.js Show resolved Hide resolved
packages/api/src/dashcoreRpc.js Outdated Show resolved Hide resolved
packages/api/test/integration/validators.spec.js Outdated Show resolved Hide resolved
packages/api/.env Outdated Show resolved Hide resolved
packages/api/src/controllers/ValidatorsController.js Outdated Show resolved Hide resolved
@pshenmic pshenmic merged commit 035ddae into master Jul 18, 2024
4 of 6 checks passed
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
None yet
Development

Successfully merging this pull request may close these issues.

Add IP address / Port for Validator
2 participants