Skip to content

Conversation

@promag
Copy link
Contributor

@promag promag commented Dec 17, 2018

The new getrpcinfo command exposes details of the RPC interface. The details can be configuration properties or runtime values/stats.

This can be particular useful to coordinate concurrent functional tests (see #14958 from where this was extracted).

@laanwj
Copy link
Member

laanwj commented Dec 17, 2018

Concept ACK

@promag
Copy link
Contributor Author

promag commented Dec 18, 2018

@Empact @practicalswift I guess you concept ACK?

@ch4ot1c
Copy link
Contributor

ch4ot1c commented Dec 18, 2018

Concept Ack.

Does uptime belong in the response? Should it be a separate rpc_uptime, measured instead from StartRPC / the Started signal?:

StartRPC();

@jonasschnelli
Copy link
Contributor

Concept ACK.

  • What about showing active commands (things like rescanblockchain and scantxoutset)?

@practicalswift
Copy link
Contributor

Concept ACK

@instagibbs
Copy link
Member

concept ACK . could it add things like port it's listening to?

@promag
Copy link
Contributor Author

promag commented Dec 21, 2018

I guess you have to know that to call this RPC?

@instagibbs
Copy link
Member

@promag the computer knows this, yes ;P

@laanwj
Copy link
Member

laanwj commented Jan 2, 2019

So I'd say if everyone is Concept ACK, I think it makes sense to fix the nits, utACK and merge this and add further ideas in later PRs.

@promag promag force-pushed the 2018-12-getrpcinfo branch from 9d4d3ab to a0ac154 Compare January 2, 2019 12:47
@promag
Copy link
Contributor Author

promag commented Jan 2, 2019

@laanwj updated.

@laanwj
Copy link
Member

laanwj commented Jan 9, 2019

utACK a0ac154

@jonasschnelli
Copy link
Contributor

tested ACK 251a91c

It currently mildly useful and I can't follow the discussion why uptime is gone. But this is a great starting point for a general RPC state report.

@laanwj laanwj merged commit a0ac154 into bitcoin:master Jan 14, 2019
laanwj added a commit that referenced this pull request Jan 14, 2019
a0ac154 doc: Add getrpcinfo release notes (João Barbosa)
251a91c qa: Add tests for getrpcinfo (João Barbosa)
d0730f5 rpc: Add getrpcinfo command (João Barbosa)
068a8fc rpc: Track active commands (João Barbosa)
bf43832 rpc: Remove unused PreCommand signal (João Barbosa)

Pull request description:

  The new `getrpcinfo` command exposes details of the RPC interface. The details can be configuration properties or runtime values/stats.

  This can be particular useful to coordinate concurrent functional tests (see #14958 from where this was extracted).

Tree-SHA512: 7292cb6087f4c429973d991aa2b53ffa1327d5a213df7d6ba5fc69b01b2e1a411f6d1609fed9234896293317dab05f65064da48b8f2b4a998eba532591d31882
@promag promag deleted the 2018-12-getrpcinfo branch January 14, 2019 17:25
kwvg added a commit to kwvg/dash that referenced this pull request Oct 31, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Nov 6, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Nov 14, 2021
pravblockc pushed a commit to pravblockc/dash that referenced this pull request Nov 18, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants