gui icon indicating copy to clipboard operation
gui copied to clipboard

debugwindow: update session ID tooltip

Open MarnixCroes opened this issue 1 year ago • 6 comments

When you have a v2 connection, there is always a session ID.

the if any is a leftover from https://github.com/bitcoin-core/gui/pull/754, where the session ID property initially would always be displayed (transport v1 and v2). So the session ID could be empty when you have a v1 connection.

As now the Session ID property only is displayed for v2 connection, there will always be a session ID.

master

sessionIDifany

PR

sessionID

Session ID not shown when transport v1

transportv1

MarnixCroes avatar Jan 17 '24 08:01 MarnixCroes

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK kristapsk, vostrnad, jarolrod, pablomartin4btc, hebasto
Concept ACK BrandonOdiwuor, hernanmarino

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

DrahtBot avatar Jan 17 '24 08:01 DrahtBot

Concept ACK

nit: @MarnixCroes, maybe you can add the screenshot for transport v1 and session ID is empty/ not shown, if possible, even this PR doesn't affect that logic.

done

MarnixCroes avatar Jan 25 '24 18:01 MarnixCroes

ACK 3bf00e13609eefa6ddb11353519bb1aec2342513

vostrnad avatar Feb 03 '24 07:02 vostrnad

When you have a v2 connection, there is always a session ID.

What if the connection type is still DETECTING?

The code reference:https://github.com/bitcoin-core/gui/blob/6737331c4ccc6da578bb44c809cc4e18f017ba51/src/node/connection_types.h#L83-L88

hebasto avatar Feb 07 '24 17:02 hebasto

When you have a v2 connection, there is always a session ID.

What if the connection type is still DETECTING?

The code reference:

https://github.com/bitcoin-core/gui/blob/6737331c4ccc6da578bb44c809cc4e18f017ba51/src/node/connection_types.h#L83-L88

then there is no session ID property as it is not a v2 peer (yet), right

MarnixCroes avatar Feb 08 '24 12:02 MarnixCroes

nit: you could expand a bit on the details of the reason of the removal of "if any" from the label in the commit body (i.e. as it's only shown in v2 transport which will always have a session id).

pablomartin4btc avatar Mar 27 '24 00:03 pablomartin4btc