CLI - add a command show chain
The command clive show chain should return the following information:
- The part of information that was available in the cli wallet
info:
- head_block_number: 82999780
- head_block_id: "04f279e43ef1efde6a5f5e4353cac95603f42624"
- time: "2024-02-21T10:51:15"
- current_witness: "deathwing"
- hbd_interest_rate: 2000
- hbd_print_rate: 10000
- maximum_block_size: 65536
- last_irreversible_block_num: 82999780
- witness_majority_version: "1.27.3"
- hardfork_version: "1.27.0"
- head_block_num: 82999780
- head_block_age: "1 second old"
- participation: "100.00000000000000000"
- "median_hbd_price: {base: ""0.330 HBD"", quote: ""1.000 HIVE""},"
- account_creation_fee: "3.000 HIVE"
- Additionally:
- Add chain_id
- Instead of
total_vesting_fund_hiveandtotal_vesting_sharesthere should be roundedvest price = total_vesting_shares /total_vesting_fund_hive. - Next to
hbd_interest_ratethere should be addedcurrent inflation rate. - Next to
hbd_interest_ratethere should be addedAPR. - There should be a warning for
hbd_print_rate, ifhbd_print_rateis not 100%. Maybe it may be color green and red? If not, then text. - There should be a warning for
participation, ifparticipationis less than DEFAULT_WITNESS_PARTICIPATION (33) and in the halfway. - There should be a warning for
median_hbd_price, ifcurrent_median_historyis differed frommarket_median_history.
For reference see https://docs.google.com/spreadsheets/d/1jHeLQtFrCyPzDwlH4U0BTu4Anc8jxNaLCxqSm7GQdGE/edit?usp=sharing