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

eoslib's get_active_producers() returns wrong vector #112

Open
soft-bagel-93 opened this issue Aug 8, 2019 · 0 comments
Open

eoslib's get_active_producers() returns wrong vector #112

soft-bagel-93 opened this issue Aug 8, 2019 · 0 comments
Assignees
Labels
bug Something isn't working low
Milestone

Comments

@soft-bagel-93
Copy link

soft-bagel-93 commented Aug 8, 2019

eoslib's get_active_producers() is filling vector such way using wasm-interface's same-named method:

     std::vector<name> active_prods(prod_cnt);
     get_active_producers((uint64_t*)active_prods.data(), active_prods.size());

wasm-interface's method uses memcpy, therefore it needs byte size of vector, not size().

LOW priority because this method is not used anywhere, afaik

@soft-bagel-93 soft-bagel-93 added bug Something isn't working low labels Aug 8, 2019
@soft-bagel-93 soft-bagel-93 added this to the Sprint-aug-05 milestone Aug 8, 2019
@soft-bagel-93 soft-bagel-93 self-assigned this Aug 8, 2019
afalaleev added a commit that referenced this issue Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low
Projects
None yet
Development

No branches or pull requests

2 participants