Page MenuHomePhabricator

Display the network limited flag in peer details
ClosedPublic

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

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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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.Jan 30 2019, 13:34
This revision was automatically updated to reflect the committed changes.