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

Validators structure fix #288

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Validators structure fix #288

merged 1 commit into from
Oct 21, 2024

Conversation

owl352
Copy link
Collaborator

@owl352 owl352 commented Oct 21, 2024

Issue

At this momment, we sending message in status field, now it stored in message field

Things done

Edited rejects for new structure
Implemented new structure in controller
Updated readme

response example:

{
  "proTxHash": "3971DAB9691EFAC06E4CE7A5483131373E84726458924FE48B7D541791693BE1",
  "isActive": false,
  "proposedBlocksAmount": 22,
  "lastProposedBlockHeader": {
    "hash": "386D9CEF27AB19E685312C5AF8D4B258815D9BFE74D80627BBEE784A44A368BD",
    "height": 31547,
    "timestamp": "2024-10-08T19:20:03.079Z",
    "blockVersion": 14,
    "appVersion": 3,
    "l1LockedHeight": 1117614,
    "validator": "3971DAB9691EFAC06E4CE7A5483131373E84726458924FE48B7D541791693BE1"
  },
  "proTxInfo": {
    "type": "Evo",
    "collateralHash": "6df9226a0d08e38045297e147a8d5d17e0ccf4e45bdcdcda517ae10c0e6d6c92",
    "collateralIndex": 0,
    "collateralAddress": "yhGUeeepQhYvXwE2spAqLWaUspToUfRj9D",
    "operatorReward": 0,
    "confirmations": 6,
    "state": {
      "version": 2,
      "service": "92.63.176.202:19999",
      "registeredHeight": 1116555,
      "lastPaidHeight": 0,
      "consecutivePayments": 0,
      "PoSePenalty": 0,
      "PoSeRevivedHeight": -1,
      "PoSeBanHeight": -1,
      "revocationReason": 0,
      "ownerAddress": "ycbpHHjyZzFrUG8MpzyACzuZpnrGPpztNL",
      "votingAddress": "ySzPE6KWnhQcChevbQXms6PctwKPGRos45",
      "platformNodeID": "61c274080f47a95be5372ef8c69bb60ab1d4ca82",
      "platformP2PPort": 36656,
      "platformHTTPPort": 1443,
      "payoutAddress": "yMe5b6wWmYSN6dwFGVkAKKsQQGJanaQq2E",
      "pubKeyOperator": "b92d4ef819fe283a307e6bcd500d8cd35e9a7b779dbca59bd3bc77b3bb3611c370258aa6dec13d0781e0b53c911bde08"
    }
  },
  "identity": "4sEw4qF2WEhotHr3TcUEUUMg3eN6XhFzaPSw5GyRGmPW",
  "identityBalance": 2042594489241,
  "epochInfo": {
    "number": 2267,
    "firstBlockHeight": 38404,
    "firstCoreBlockHeight": 1125317,
    "startTime": 1729514444438,
    "feeMultiplier": 1,
    "endTime": 1729518044438
  },
  "totalReward": 0,
  "epochReward": 0,
  "withdrawalsCount": 0,
  "lastWithdrawal": null,
  "lastWithdrawalTime": null,
  "endpoints": {
    "coreP2PPortStatus": {
      "host": "92.63.176.202",
      "port": 19999,
      "status": "ECONNREFUSED",
      "message": "connect ECONNREFUSED 92.63.176.202:19999"
    },
    "platformP2PPortStatus": {
      "host": "92.63.176.202",
      "port": 36656,
      "status": "ERR_CONNECTION_REFUSED",
      "message": null
    },
    "platformGrpcPortStatus": {
      "host": "92.63.176.202",
      "port": 1443,
      "status": "ERR_CONNECTION_REFUSED",
      "message": null
    }
  }
}

@owl352 owl352 added the backend Related to backend (API) label Oct 21, 2024
@owl352 owl352 self-assigned this Oct 21, 2024
Copy link

vercel bot commented Oct 21, 2024

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

Name Status Preview Comments Updated (UTC)
platform-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 1:04pm
platform-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 1:04pm

@pshenmic pshenmic merged commit af457f6 into master Oct 21, 2024
9 checks passed
@owl352 owl352 linked an issue Oct 26, 2024 that may be closed by this pull request
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.

Improving the work of the service and fixing small bugs
2 participants