Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring getmininginfo up to date #64

Open
roylee17 opened this issue Jun 15, 2022 · 0 comments
Open

Bring getmininginfo up to date #64

roylee17 opened this issue Jun 15, 2022 · 0 comments
Labels
good first issue Good for newcomers rpc RPC related issues

Comments

@roylee17
Copy link
Collaborator

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
}
@roylee17 roylee17 added good first issue Good for newcomers rpc RPC related issues labels Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers rpc RPC related issues
Projects
None yet
Development

No branches or pull requests

1 participant