Skip to content

Commit 29082e8

Browse files
committed
Merge #16380: Remove unused bits from the service flags enum
fa0d0ff Remove unused bits from the service flags enum (MarcoFalke) Pull request description: Remove all bits that have no BIP specification nor can be observed on the active network ACKs for top commit: practicalswift: utACK fa0d0ff LarryRuane: utACK fa0d0ff promag: ACK fa0d0ff. laanwj: ACK fa0d0ff Tree-SHA512: 6342017bfd4c2a39c998fbb02497931b11892e1cb60fc13b948b91812f281b605a25a3fdc0d5358dff18da4e82eb4eb4de95c43c7e76ecb331c1c3985443dd21
2 parents 6d37ed8 + fa0d0ff commit 29082e8

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/protocol.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) 2009-2010 Satoshi Nakamoto
2-
// Copyright (c) 2009-2018 The Bitcoin Core developers
2+
// Copyright (c) 2009-2019 The Bitcoin Core developers
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

@@ -261,9 +261,6 @@ enum ServiceFlags : uint64_t {
261261
// NODE_WITNESS indicates that a node can be asked for blocks and transactions including
262262
// witness data.
263263
NODE_WITNESS = (1 << 3),
264-
// NODE_XTHIN means the node supports Xtreme Thinblocks
265-
// If this is turned off then the node will not service nor make xthin requests
266-
NODE_XTHIN = (1 << 4),
267264
// NODE_NETWORK_LIMITED means the same as NODE_NETWORK with the limitation of only
268265
// serving the last 288 (2 day) blocks
269266
// See BIP159 for details on how this is implemented.

src/qt/guiutil.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2011-2018 The Bitcoin Core developers
1+
// Copyright (c) 2011-2019 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

@@ -11,10 +11,10 @@
1111

1212
#include <base58.h>
1313
#include <chainparams.h>
14-
#include <primitives/transaction.h>
15-
#include <key_io.h>
1614
#include <interfaces/node.h>
15+
#include <key_io.h>
1716
#include <policy/policy.h>
17+
#include <primitives/transaction.h>
1818
#include <protocol.h>
1919
#include <script/script.h>
2020
#include <script/standard.h>
@@ -841,9 +841,6 @@ QString formatServicesStr(quint64 mask)
841841
case NODE_WITNESS:
842842
strList.append("WITNESS");
843843
break;
844-
case NODE_XTHIN:
845-
strList.append("XTHIN");
846-
break;
847844
default:
848845
strList.append(QString("%1[%2]").arg("UNKNOWN").arg(check));
849846
}

0 commit comments

Comments
 (0)