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

defi-cli getmininginfo #12

Closed
Kracht opened this issue Jun 15, 2020 · 2 comments
Closed

defi-cli getmininginfo #12

Kracht opened this issue Jun 15, 2020 · 2 comments

Comments

@Kracht
Copy link

Kracht commented Jun 15, 2020

Hi, just found a small typo...

~/.defi# defi-cli getmininginfo
error code: -32601
error message:
Method not found

but:

~/.defi# defi-cli getmintinginfo
{
  "blocks": 81776,
  "difficulty": 436865480.6849026,
  "isoperator": false,
  "networkhashps": 6.198374690712178e+16,
  "pooledtx": 0,
  "chain": "main",
  "warnings": "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"
}

Unintended typo I guess, instead of "getmininginfo" it is "getmintinginfo" with an extra t.

I'm running a docker node with the following specs

~/.defi# defi-cli -getinfo
{
  "version": 1000000,
  "protocolversion": 70015,
  "blocks": 81786,
  "timeoffset": 25,
  "connections": 8,
  "proxy": "",
  "difficulty": 287411770.450339,
  "chain": "main",
  "walletversion": 169900,
[...]
}
@prasannavl
Copy link
Member

prasannavl commented Jun 23, 2020

Hi @Kracht,

Thanks for reaching out! It's intentionally minting with t :) Our consensus algorithm is a combination of proof of stake (PoS) along with Bitcoin's proof of work (PoW). Bitcoin uses proof of work to mine blocks. DeFi Blockchain uses proof of stake to mint blocks.

For more details, please have look at the whitepaper - https://www.defichain.io/white-paper/

So, this isn't a typo, but it's an interesting coincidence that the change ended up so close that it may be mistaken for a typo. But we do want to add docs for the RPC changes soon. Appreciate you taking the time to report, helps us prioritise on the docs :)

@Kracht
Copy link
Author

Kracht commented Jun 23, 2020

That totaly makes sense, feeling a bit dumb now ^^ thx for taking time to explain!

@Kracht Kracht closed this as completed Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants