You are viewing a single comment's thread from:

RE: Steemd now shows remaining Voting Power and Bandwidth

in #steem7 years ago

hey @pharesim, do you know how exactly one calculates the bandwidth remaining? I'm not seeing it from the data in the get_accounts object. is there another object I need to request, or am I just totally missing it?

Sort:  

I figured it out, just as an fyi, the additional data you need is in get_dynamic_global_properties, and the formula is:

has_bandwidth = ( account_vshares * max_virtual_bandwidth ) > ( account_average_bandwidth * total_vshares );

Link: github: witness_plugin.cpp

thanks for this info @alexpmorris