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

[3.2] Add additional CPU/NET usage data to get_account results #493

Merged
merged 11 commits into from
Jun 23, 2022

Conversation

ClaytonCalabrese
Copy link
Contributor

@ClaytonCalabrese ClaytonCalabrese commented Jun 21, 2022

Updated /v1/chain/get_account. See #398 for complete details.

For issue EOSIO/eos#8708,
Added last_updated_time_stamp and current_used (according to the head block timestamp) to get_account results.

The current_used is shown on the same line following used ( in parenthesis).
The last_updated_time_stamp will only be printed in the json result.

Note:

The old cleos (w/o this fix) prints the same info on screen with no matter of new or old version of nodeos , but json format has those two fields from new nodeos.
The new cleos (with this fix) displays (out-of-date) for current_used with the old version of nodeos.
When an account has unlimited cpu/net usage, (unlimited) is displayed for current_used.
When an account has no activity after being created, the account creation time is used as the last_updated_time_stamp in json result.
If the user no activity for a day, the current_used will be 0.

Resolves: #398

@ClaytonCalabrese ClaytonCalabrese added 3.2 Candidate OCI OCI working this issue... labels Jun 21, 2022
@ClaytonCalabrese ClaytonCalabrese self-assigned this Jun 21, 2022
@ClaytonCalabrese ClaytonCalabrese merged commit db9e2ef into main Jun 23, 2022
@ClaytonCalabrese ClaytonCalabrese deleted the cpu_net_usage_data branch June 23, 2022 16:31
@arhag arhag changed the title Add additional CPU/NET usage data to get_account results [3.2] Add additional CPU/NET usage data to get_account results Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2 Candidate OCI OCI working this issue...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backport: Add additional CPU/NET usage data to get_account results
3 participants