Remove unused bits from the service flags enum

pull/764/head
MarcoFalke 5 years ago
parent 3453cf26db
commit fa0d0ff6e1
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -1,5 +1,5 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers // Copyright (c) 2009-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying // Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
@ -261,9 +261,6 @@ enum ServiceFlags : uint64_t {
// NODE_WITNESS indicates that a node can be asked for blocks and transactions including // NODE_WITNESS indicates that a node can be asked for blocks and transactions including
// witness data. // witness data.
NODE_WITNESS = (1 << 3), NODE_WITNESS = (1 << 3),
// NODE_XTHIN means the node supports Xtreme Thinblocks
// If this is turned off then the node will not service nor make xthin requests
NODE_XTHIN = (1 << 4),
// NODE_NETWORK_LIMITED means the same as NODE_NETWORK with the limitation of only // NODE_NETWORK_LIMITED means the same as NODE_NETWORK with the limitation of only
// serving the last 288 (2 day) blocks // serving the last 288 (2 day) blocks
// See BIP159 for details on how this is implemented. // See BIP159 for details on how this is implemented.

@ -1,4 +1,4 @@
// Copyright (c) 2011-2018 The Bitcoin Core developers // Copyright (c) 2011-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying // Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
@ -11,10 +11,10 @@
#include <base58.h> #include <base58.h>
#include <chainparams.h> #include <chainparams.h>
#include <primitives/transaction.h>
#include <key_io.h>
#include <interfaces/node.h> #include <interfaces/node.h>
#include <key_io.h>
#include <policy/policy.h> #include <policy/policy.h>
#include <primitives/transaction.h>
#include <protocol.h> #include <protocol.h>
#include <script/script.h> #include <script/script.h>
#include <script/standard.h> #include <script/standard.h>
@ -841,9 +841,6 @@ QString formatServicesStr(quint64 mask)
case NODE_WITNESS: case NODE_WITNESS:
strList.append("WITNESS"); strList.append("WITNESS");
break; break;
case NODE_XTHIN:
strList.append("XTHIN");
break;
default: default:
strList.append(QString("%1[%2]").arg("UNKNOWN").arg(check)); strList.append(QString("%1[%2]").arg("UNKNOWN").arg(check));
} }

Loading…
Cancel
Save