Page MenuHomePhabricator

Display the network limited flag in peer details
ClosedPublic

Authored by Fabien on Wed, Jan 30, 10:29.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABC826b021f51c7: Display the network limited flag in peer details
Summary

Display "LIMITED" for network limited nodes.
Note that the avalanche flag is not displayed, because it is in the
experimental range.

Test Plan
./src/qt/bitcoin-qt -prune=550 &
mkdir /tmp/datadir
./src/qt/bitcoin-qt -datadir=/tmp/datadir -connect=127.0.0.1

In the second instance:
Go to "Help=>Debug window"
Select the tab "Peers"
Click the 127.0.0.1 peer in the upper table
Check in the details that the LIMITED flag is displayed

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Fabien created this revision.Wed, Jan 30, 10:29
Herald added a reviewer: Restricted Project. · View Herald TranscriptWed, Jan 30, 10:29
Herald added a subscriber: schancel. · View Herald Transcript
deadalnix accepted this revision.Wed, Jan 30, 13:34
deadalnix added inline comments.
src/qt/guiutil.cpp
891 ↗(On Diff #7016)

This would benefit from being a constant.

This revision is now accepted and ready to land.Wed, Jan 30, 13:34
This revision was automatically updated to reflect the committed changes.