Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

2.0.x -- Add total CPU and NET to get_info #10932

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

linhuang-blockone
Copy link
Contributor

Change Description

This is to merge #10923 into rel 2.0.x. Total CPU weight and total NET weight are added to get_info (https://blockone.atlassian.net/browse/EPE-1801).

A sample run of cleos run looks like

./cleos get info
{
  "server_version": "55e99c2e",
  "chain_id": "8a34ec7df1b8cd06ff4a8abbaa7cc50300823350cadc59ab296cb00d104d2b8f",
  "head_block_num": 56,
  "last_irreversible_block_num": 55,
  "last_irreversible_block_id": "000000374631fe2f1bacb8a92ff4f292055b9cd2516156f865c2118038618ef5",
  "head_block_id": "00000038433d7c997f1424a94ef0d0fc2ad9e0b3799d56cc053eab3348bc911a",
  "head_block_time": "2021-12-06T21:21:25.500",
  "head_block_producer": "eosio",
  "virtual_block_cpu_limit": 211288,
  "virtual_block_net_limit": 1107864,
  "block_cpu_limit": 199900,
  "block_net_limit": 1048576,
  "server_version_string": "v2.0.13",
  "fork_db_head_block_num": 56,
  "fork_db_head_block_id": "00000038433d7c997f1424a94ef0d0fc2ad9e0b3799d56cc053eab3348bc911a",
  "server_full_version_string": "v2.0.13-55e99c2e040a93a1d1e1bac4fa1cd94948f8288f-dirty",
  "total_cpu_weight": 0,
  "total_net_weight": 0
}

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

total_cpu_weight and total_net_weight are added to get_info chain API endpoint.

@heifner heifner merged commit f27acf2 into release/2.0.x Jan 3, 2022
@heifner heifner deleted the lh-EPE-1801-get-total-cpu-and-net-2.0.x branch January 3, 2022 14:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants