lbryio/lbcd

Bring `getmininginfo` up to date

Aberta

#64 aberto em 15 de jun. de 2022

 (0 comentário) (0 reação) (0 responsável)Go (22 forks)auto 404
good first issuerpc

Métricas do repositório

Stars
 (41 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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
}

Guia do colaborador