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

[Bug]: unable to changeWeight of L1s node #2469

Closed
jimmy-yii opened this issue Dec 18, 2024 · 0 comments · Fixed by #2545
Closed

[Bug]: unable to changeWeight of L1s node #2469

jimmy-yii opened this issue Dec 18, 2024 · 0 comments · Fixed by #2545
Assignees
Labels
bug Something isn't working

Comments

@jimmy-yii
Copy link

Describe the bug
Tried to change weight of a specific node, but failed

avalanche blockchain changeWeight xxx --node-id NodeID-NmUcPsjT6auu44mRspqKnnfXY2D5VjoX4
✔ Fuji Testnet
✔ Use stored key
✔ testnetkey
Error: node NodeID-NmUcPsjT6auu44mRspqKnnfXY2D5VjoX4 is not a validator on subnet 6vLU8FRMJVda5V5xnh1dyaGLZiE94eZ12pXubUpuPLAZaPmAu

but when i use validators.getCurrentValidators it can shows that the node is the current validators

curl -X POST --data '{
    "jsonrpc": "2.0",
    "method": "validators.getCurrentValidators",
    "params": {
        "nodeIDs": []
    },
    "id": 1
}'  -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/2TyJdeYSxVAukD3DX2m8oaLJFN2BBCfLkggpCrBYfzMjnVFxBP/validators | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   967  100   836  100   131   816k   127k --:--:-- --:--:-- --:--:--  944k
{
  "jsonrpc": "2.0",
  "result": {
    "validators": [
      {
        "validationID": "1BwK1NdcHL1pi1dcUGAL2S3D82pbg1EE5BCrSbWuzqyokFvpX",
        "nodeID": "NodeID-v5SPrLFxbXzxyFp78GdKPqjrn7m6UFnN",
        "weight": 100,
        "startTimestamp": 1734509186,
        "isActive": true,
        "isL1Validator": true,
        "isConnected": true,
        "uptimePercentage": 100,
        "uptimeSeconds": 3448
      },
      {
        "validationID": "2YF8gJJw3WDPCdfNjNXsmJRY2sc448LBJPhuLcE5b7R63wDQps",
        "nodeID": "NodeID-A3BTvVqr6iEjebsK4Jqij7rdiD3rdeoUX",
        "weight": 20,
        "startTimestamp": 1734509871,
        "isActive": true,
        "isL1Validator": true,
        "isConnected": true,
        "uptimePercentage": 100,
        "uptimeSeconds": 2763
      },
      {
        "validationID": "2JpkzRQhGTKU4U5BvDWmWwaq1Gs6ub5gAXKpqxRUycsRyfNmtq",
        "nodeID": "NodeID-NmUcPsjT6auu44mRspqKnnfXY2D5VjoX4",
        "weight": 20,
        "startTimestamp": 1734509971,
        "isActive": true,
        "isL1Validator": true,
        "isConnected": true,
        "uptimePercentage": 100,
        "uptimeSeconds": 2663
      }
    ]
  },
  "id": 1
}

To Reproduce
Steps to reproduce the behavior.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
If applicable, please include the relevant logs that indicate a problem.

Operating System
Which OS you used to reveal the bug.

Additional context
Add any other context about the problem here.

@jimmy-yii jimmy-yii added the bug Something isn't working label Dec 18, 2024
@jimmy-yii jimmy-yii changed the title [Bug]: unable to changeWeight of L1s [Bug]: unable to changeWeight of L1s node Dec 18, 2024
@meaghanfitzgerald meaghanfitzgerald linked a pull request Jan 10, 2025 that will close this issue
@meaghanfitzgerald meaghanfitzgerald moved this from Backlog 🗄️ to In Progress 🏗 in Platform Engineering Group Jan 10, 2025
@github-project-automation github-project-automation bot moved this from In Progress 🏗 to Done ✅ in Platform Engineering Group Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants