Show permissions instead of whitelisted #34

pull laanwj wants to merge 1 commits into bitcoin-core:master from laanwj:2020_07_gui_permissions changing 2 files +11 −3
  1. laanwj commented at 8:56 PM on July 15, 2020: member

    Show detailed permissions instead of legacy "whitelisted" flag in the peer list details. These are formatted with & in between just like services flags. It reuses the "N/A" translation message if there are no special permissions. This removes the one-but-last use of legacyWhitelisted.

  2. gui: Show permissions instead of whitelisted
    Show detailed permissions instead of legacy "whitelisted" flag.
    These are formatted with `&` in between just like services flags.
    It reuses the "N/A" translation message if not.
    This removes the one-but-last use of `legacyWhitelisted`.
    784ef8be41
  3. hebasto commented at 9:23 PM on July 15, 2020: member

    Concept ACK.

  4. MarcoFalke commented at 6:03 AM on July 16, 2020: contributor

    Screenshot from 2020-07-16 08-03-03

    Tested aCK

  5. MarcoFalke renamed this:
    gui: Show permissions instead of whitelisted
    Show permissions instead of whitelisted
    on Jul 16, 2020
  6. MarcoFalke merged this on Jul 16, 2020
  7. MarcoFalke closed this on Jul 16, 2020

  8. jonatack commented at 8:06 AM on July 16, 2020: contributor

    post-merge ACK 784ef8be41c7e5130a6b063b359031ee1ce75aff

  9. in src/qt/rpcconsole.cpp:1123 in 784ef8be41
    1119 | @@ -1120,7 +1120,15 @@ void RPCConsole::updateNodeDetail(const CNodeCombinedStats *stats)
    1120 |      ui->peerSubversion->setText(QString::fromStdString(stats->nodeStats.cleanSubVer));
    1121 |      ui->peerDirection->setText(stats->nodeStats.fInbound ? tr("Inbound") : tr("Outbound"));
    1122 |      ui->peerHeight->setText(QString::number(stats->nodeStats.nStartingHeight));
    1123 | -    ui->peerWhitelisted->setText(stats->nodeStats.m_legacyWhitelisted ? tr("Yes") : tr("No"));
    


    promag commented at 9:15 AM on July 16, 2020:

    Why wasn't m_legacyWhitelisted removed?


    MarcoFalke commented at 11:01 AM on July 16, 2020:

    See OP

    This removes the one-but-last use of legacyWhitelisted.


    promag commented at 12:11 PM on July 16, 2020:

    Oh right, miss interpreted "one-but-last", sorry.


    amitiuttarwar commented at 6:46 AM on December 24, 2020:
  10. in src/qt/rpcconsole.cpp:1123 in 784ef8be41
    1119 | @@ -1120,7 +1120,15 @@ void RPCConsole::updateNodeDetail(const CNodeCombinedStats *stats)
    1120 |      ui->peerSubversion->setText(QString::fromStdString(stats->nodeStats.cleanSubVer));
    1121 |      ui->peerDirection->setText(stats->nodeStats.fInbound ? tr("Inbound") : tr("Outbound"));
    1122 |      ui->peerHeight->setText(QString::number(stats->nodeStats.nStartingHeight));
    1123 | -    ui->peerWhitelisted->setText(stats->nodeStats.m_legacyWhitelisted ? tr("Yes") : tr("No"));
    1124 | +    if (stats->nodeStats.m_permissionFlags == PF_NONE) {
    


    promag commented at 9:15 AM on July 16, 2020:

    nit, could #include <net_permissions.h>.

  11. promag commented at 9:17 AM on July 16, 2020: contributor

    Code review ACK 784ef8be41c7e5130a6b063b359031ee1ce75aff.

  12. Sjors commented at 10:24 AM on July 16, 2020: member

    Post merge concept ACK, nice!

  13. sidhujag referenced this in commit 06e3e0c10e on Jul 18, 2020
  14. apoelstra referenced this in commit a70cb0fa02 on Dec 3, 2020
  15. gwillen referenced this in commit 6d69f4d2cc on Mar 19, 2021
  16. Fabcien referenced this in commit 158c273c4a on Sep 1, 2021
  17. bitcoin-core locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me