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

Реализовать метод получения голосов за валидатора #4

Open
zxcat opened this issue Sep 18, 2019 · 3 comments
Assignees

Comments

@zxcat
Copy link
Contributor

zxcat commented Sep 18, 2019

Нужен ещё такой простой запрос, который нереально вытянуть через api из-за отсутствия нужного индекса:
db.stake_grant.find({recipient_name:<validator>, share: {$gt: 0}}).
+ можно отсортировать по share по убыванию

@IvanBlacky
Copy link
Contributor

Done

@zxcat
Copy link
Contributor Author

zxcat commented Sep 23, 2019

Done

@IvanBlacky, а где оно спрятано?
вроде тут все запросы: https://github.com/GolosChain/state-reader/blob/74d021b1af97afc4bc7a93faf4089a77c0712504/src/controllers/BlockChainMongo.js но не нахожу там выборки по recipient_name

@IvanBlacky
Copy link
Contributor

Done

@IvanBlacky, а где оно спрятано?
вроде тут все запросы: https://github.com/GolosChain/state-reader/blob/74d021b1af97afc4bc7a93faf4089a77c0712504/src/controllers/BlockChainMongo.js но не нахожу там выборки по recipient_name

Ага, вижу. По ошибке закрыл, переоткрою, сделаем

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants