Bring getmininginfo up to date #64

Open
opened 2022-06-15 22:47:38 +02:00 by roylee17 · 0 comments
roylee17 commented 2022-06-15 22:47:38 +02:00 (Migrated from github.com)

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
}
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 } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbcd#64
No description provided.