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

Display fRelayTxes and bip152_highbandwidth_{to, from} in peer details #206

Merged
merged 2 commits into from
Feb 22, 2021

Conversation

jonatack
Copy link
Member

@jonatack jonatack commented Feb 1, 2021

This pull adds two fields to the peer details, "Wants Tx Relay" (fRelayTxes) and "High Bandwidth" (bip152_highbandwidth to/from). See the added tooltips for more info.

@jonatack jonatack force-pushed the add-fields-to-peer-details branch from e91bcb5 to caf9b87 Compare February 8, 2021 15:04
@jonatack
Copy link
Member Author

jonatack commented Feb 8, 2021

I think this is ready for review 🚀 Will add last block and last transaction fields in a separate pull to keep this change small.

Relay Transactions

Screenshot from 2021-02-07 23-26-50

High Bandwidth

Screenshot from 2021-02-07 23-26-46

@jonatack jonatack marked this pull request as ready for review February 8, 2021 15:18
Copy link
Member

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK, just a few thoughts

The usage of text symbols to indicate something makes sense in a CLI environment, as used in the netinfo dashboard:
netinfo-cli

In adding these new fields, I don't think we should continue to use the same text symbols used in a CLI environment in a GUI environment.

Suggestions:

Relay Transactions

  • I don't think it's great UX to show a checkmark when the peer is relaying transactions and nothing when it isn't. It would be better to have a simple TRUE or FALSE for each case.
  • The tooltip should also be modified to have bullet points just like the high-bandwidth field's tooltip has

High Bandwidth

  • The . and * symbols are small. I think a TO and FROM key-word would be a better fit, given the context of the GUI environment, and provide a better UX experience.

When Not Applicable

  • Currently, if any of these fields are not applicable they will still show up and show up empty. Perhaps we can fill in the space with N/A or not show the field at all. Below is a screenshot showing this behavior.

empty-fields

Copy link
Contributor

@maflcko maflcko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

@jonatack jonatack force-pushed the add-fields-to-peer-details branch from caf9b87 to 142807a Compare February 18, 2021 10:17
@jonatack
Copy link
Member Author

Thanks @jarolrod and @MarcoFalke. Updated to "Wants Tx Relay" (Yes/No) and "High Bandwidth" (To/From/No). Updated the tooltips accordingly.

Copy link
Member

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 142807a

Screen Shot 2021-02-18 at 7 57 38 AM

The Yes/No for Relay Transactions and the To/From/No for High Bandwidth is certainly an improvement

@maflcko
Copy link
Contributor

maflcko commented Feb 18, 2021

review ACK 142807a

Copy link

@Talkless Talkless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK.

src/qt/rpcconsole.cpp Show resolved Hide resolved
src/qt/rpcconsole.cpp Show resolved Hide resolved
@maflcko maflcko merged commit 08eec69 into bitcoin-core:master Feb 22, 2021
@jonatack jonatack deleted the add-fields-to-peer-details branch February 22, 2021 10:41
@jonatack
Copy link
Member Author

Good points @Talkless, will retouch those in the next patch adding last block and last transaction fields.

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 22, 2021
maflcko pushed a commit that referenced this pull request Mar 7, 2021
…provements

6242bee Hoist repeated translated strings to RPCConsole struct members (Jon Atack)
0f035c1 RPCConsole::updateDetailWidget: convert strings to translated strings (Jon Atack)

Pull request description:

  - fixups from #206 review feedback (thanks!), see commit message for details
  - hoists repeatedly used translatable strings to the `RPCConsole` class for reuse

ACKs for top commit:
  hebasto:
    re-ACK 6242bee
  Talkless:
    tACK 6242bee, tested on Debian Sid with Qt 5.15.2. I see "Ban for.." translated to my native language as before, "To/From/Yes/No" are not but that's expected, as `.ts` files are not updated.
  jarolrod:
    ACK 6242bee

Tree-SHA512: 20a296511c5ac03a816766237fa2731b0360dedebf1bea02711eb21d7e4eae2a63a051fe48f4726052edc3e6318952f01fef920cd4b22a8196c39c23d8e5cc3a
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Feb 3, 2022
Summary:
> gui: display fRelayTxes in peer details

> gui: display BIP152 high bandwidth relay in peer details

This is a backport of [[bitcoin-core/gui#206 | core-gui#206]]
Depends on D10962

Test Plan:
`ninja && src/qt/bitcoin-qt`
In the Peers view, select a  peer and check the new "high bandwidth" and "Wants Tx Relay" fields.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10963
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 28, 2022
@bitcoin-core bitcoin-core locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants