Skip to content

Commit 8e4fd0c

Browse files
committed
Merge pull request #5876
5983a4e Add a NODE_GETUTXO service bit and document NODE_NETWORK. Stop translating the NODE_* names as they are technical and cannot be translated. (Mike Hearn)
2 parents 6a1fbc4 + 5983a4e commit 8e4fd0c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/protocol.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ class CMessageHeader
6767

6868
/** nServices flags */
6969
enum {
70+
// NODE_NETWORK means that the node is capable of serving the block chain. It is currently
71+
// set by all Bitcoin Core nodes, and is unset by SPV clients or other peers that just want
72+
// network services but don't provide them.
7073
NODE_NETWORK = (1 << 0),
74+
// NODE_GETUTXO means the node is capable of responding to the getutxo protocol request.
75+
// Bitcoin Core does not support this but a patch set called Bitcoin XT does.
76+
// See BIP 64 for details on how this is implemented.
77+
NODE_GETUTXO = (1 << 1),
7178

7279
// Bits 24-31 are reserved for temporary experiments. Just pick a bit that
7380
// isn't getting used, or one not being used much, and notify the

src/qt/guiutil.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,10 +878,13 @@ QString formatServicesStr(quint64 mask)
878878
switch (check)
879879
{
880880
case NODE_NETWORK:
881-
strList.append(QObject::tr("NETWORK"));
881+
strList.append("NETWORK");
882+
break;
883+
case NODE_GETUTXO:
884+
strList.append("GETUTXO");
882885
break;
883886
default:
884-
strList.append(QString("%1[%2]").arg(QObject::tr("UNKNOWN")).arg(check));
887+
strList.append(QString("%1[%2]").arg("UNKNOWN").arg(check));
885888
}
886889
}
887890
}

0 commit comments

Comments
 (0)