RiseVision / rise-node

:rainbow: RISE blockchain node
http://rise.vision/
GNU General Public License v3.0
71 stars 23 forks source link

API GET Delegates gives Invalid rank and rate #196

Open 1indian opened 5 years ago

1indian commented 5 years ago

Actual

curl --silent https://wallet.rise.vision/api/delegates/get\?publicKey\=7f31f1b13f211ada60b61e47778b8d59e7f0ecb56fd6f9ea9200c805e352f6a8 | jq .
{
  "success": true,
  "delegate": {
    "username": "indian",
    "address": "3361547442450966682R",
    "cmb": 0,
    "publicKey": "7f31f1b13f211ada60b61e47778b8d59e7f0ecb56fd6f9ea9200c805e352f6a8",
    "vote": 8877869856391,
    "producedblocks": 69,
    "votesWeight": 8877869856391,
    "missedblocks": 1,
    "rank": 146,
    "approval": 0.07,
    "productivity": 98.57,
    "rate": 146
  }
}

Expected

Currently delegate indian is at position 132, however the API responds with rank and rate 146

Comments

I hope this doesn't have an impact on forging slots?

vekexasia commented 5 years ago

Thanks, It'll be fixed in rise v2.