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

develop -- Add total CPU weight and total NET weight to get_info #10930

Merged
merged 2 commits into from
Dec 8, 2021

Conversation

linhuang-blockone
Copy link
Contributor

Change Description

This is to merge #10923 into develop. 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": "3aa54bae",
  "chain_id": "8a34ec7df1b8cd06ff4a8abbaa7cc50300823350cadc59ab296cb00d104d2b8f",
  "head_block_num": 4839,
  "last_irreversible_block_num": 4838,
  "last_irreversible_block_id": "000012e6274191e0318e5015e45f20c120dea86f700db28278efd14f754ae443",
  "head_block_id": "000012e7cd0363bd7b0c1b96aff53afa24114266c1d58a88f68841a924e8149f",
  "head_block_time": "2021-12-06T21:22:43.500",
  "head_block_producer": "eosio",
  "virtual_block_cpu_limit": 25241438,
  "virtual_block_net_limit": 132606367,
  "block_cpu_limit": 200000,
  "block_net_limit": 1048576,
  "server_version_string": "v2.2.0-rc1",
  "fork_db_head_block_num": 4839,
  "fork_db_head_block_id": "000012e7cd0363bd7b0c1b96aff53afa24114266c1d58a88f68841a924e8149f",
  "server_full_version_string": "v2.2.0-rc1-3aa54bae17cbde2214046b0fd63dd814a15b295c-dirty",
  "last_irreversible_block_time": "2021-12-06T21:22:43.000",
  "first_block_num": 1,
  "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.

@linhuang-blockone linhuang-blockone merged commit e6e9fc4 into develop Dec 8, 2021
@linhuang-blockone linhuang-blockone deleted the lh-EPE-1801-get-total-cpu-net-develop branch December 8, 2021 16:41
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