lbryio/lbcd

Bring `getmininginfo` up to date

オープン

#64 opened on 2022/06/15

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Go (22 件のフォーク)auto 404
good first issuerpc

Repository metrics

Stars
 (41 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Update the the testnet boolean attribute to chain string for network name.

On lbcd:

lbcctl getmininginfo
{
  "blocks": 1176991,
  "currentblocksize": 99937,
  "currentblockweight": 399640,
  "currentblocktx": 124,
  "difficulty": 1873348963350.1497,
  "errors": "",
  "generate": false,
  "genproclimit": 16,
  "hashespersec": 0,
  "networkhashps": 543153148851407,
  "pooledtx": 212,
  "testnet": false
}

Latest spec:

{                              (json object)
  "blocks" : n,                (numeric) The current block
  "currentblockweight" : n,    (numeric, optional) The block weight of the last assembled block (only present if a block was ever assembled)
  "currentblocktx" : n,        (numeric, optional) The number of block transactions of the last assembled block (only present if a block was ever assembled)
  "difficulty" : n,            (numeric) The current difficulty
  "networkhashps" : n,         (numeric) The network hashes per second
  "pooledtx" : n,              (numeric) The size of the mempool
  "chain" : "str",             (string) current network name (main, test, signet, regtest)
  "warnings" : "str"           (string) any network and blockchain warnings
}

コントリビューターガイド