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

Already on GitHub? Sign in to your account

undocumented RPC calls #836

Closed
jlopp opened this Issue Apr 22, 2015 · 6 comments

Comments

Projects
None yet
3 participants
Contributor

jlopp commented Apr 22, 2015

There are some RPC calls that appear to be undocumented:

invalidateblock
reconsiderblock
setmocktime

Contributor

gmaxwell commented Apr 22, 2015

These RPCs are for diagnostic purposes and not intended for general supported use and are explicitly hidden in the software.

Contributor

harding commented Apr 22, 2015

@jlopp that's deliberate. They're in the hidden RPC category in Bitcoin Core, so they aren't listed when you run bitcoin-cli help. If the core devs think they should be hidden, I don't think we should show them. (Especially since they're pretty much useless for anything besides writing unit tests.)

However, let me know if you disagree. Also maybe let the core devs know if you think they shouldn't be hidden.

Contributor

jlopp commented Apr 22, 2015

The reason that I came across these undocumented calls was that I need to test how my service manages block chain forks. I ended up on this post: http://bitcoin.stackexchange.com/questions/36649/testing-blockchain-forks

Is there an alternate recommended way to test block chain forking?

Contributor

jlopp commented Apr 22, 2015

Great, thanks. I don't suppose you know of anyone who has released a node network simulator that spools up several regtest nodes and has them generate realistic traffic? If not, I may look into it myself as it would be a huge help for speeding up the testing of my service.

@jlopp jlopp closed this Apr 22, 2015

Contributor

harding commented Apr 22, 2015

@jlopp I don't know of any such software, but if you write it and release it as open source, please send me a link so I can add it to the docs (somewhere; I'm not sure where yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment