Skip to content

Commit fa98a09

Browse files
author
MarcoFalke
committedNov 30, 2023
Rename version.h to node/protocol_version.h
1 parent fa4fbd5 commit fa98a09

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed
 

‎src/Makefile.am

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ BITCOIN_CORE_H = \
230230
node/mini_miner.h \
231231
node/minisketchwrapper.h \
232232
node/peerman_args.h \
233+
node/protocol_version.h \
233234
node/psbt.h \
234235
node/transaction.h \
235236
node/txreconciliation.h \
@@ -658,8 +659,7 @@ libbitcoin_consensus_a_SOURCES = \
658659
uint256.cpp \
659660
uint256.h \
660661
util/strencodings.cpp \
661-
util/strencodings.h \
662-
version.h
662+
util/strencodings.h
663663
#
664664

665665
# common #

‎src/net.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <netbase.h>
2121
#include <netgroup.h>
2222
#include <node/connection_types.h>
23+
#include <node/protocol_version.h>
2324
#include <policy/feerate.h>
2425
#include <protocol.h>
2526
#include <random.h>
@@ -30,7 +31,6 @@
3031
#include <util/check.h>
3132
#include <util/sock.h>
3233
#include <util/threadinterrupt.h>
33-
#include <version.h>
3434

3535
#include <atomic>
3636
#include <condition_variable>

‎src/version.h renamed to ‎src/node/protocol_version.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Copyright (c) 2012-2020 The Bitcoin Core developers
1+
// Copyright (c) 2012-present 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

5-
#ifndef BITCOIN_VERSION_H
6-
#define BITCOIN_VERSION_H
5+
#ifndef BITCOIN_NODE_PROTOCOL_VERSION_H
6+
#define BITCOIN_NODE_PROTOCOL_VERSION_H
77

88
/**
99
* network protocol versioning
@@ -35,4 +35,4 @@ static const int INVALID_CB_NO_BAN_VERSION = 70015;
3535
//! "wtxidrelay" command for wtxid-based relay starts with this version
3636
static const int WTXID_RELAY_VERSION = 70016;
3737

38-
#endif // BITCOIN_VERSION_H
38+
#endif // BITCOIN_NODE_PROTOCOL_VERSION_H

‎src/rpc/net.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <net_types.h> // For banmap_t
1616
#include <netbase.h>
1717
#include <node/context.h>
18+
#include <node/protocol_version.h>
1819
#include <policy/settings.h>
1920
#include <protocol.h>
2021
#include <rpc/blockchain.h>
@@ -29,7 +30,6 @@
2930
#include <util/time.h>
3031
#include <util/translation.h>
3132
#include <validation.h>
32-
#include <version.h>
3333
#include <warnings.h>
3434

3535
#include <optional>

‎src/test/fuzz/util/net.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
#include <compat/compat.h>
88
#include <netaddress.h>
9+
#include <node/protocol_version.h>
910
#include <protocol.h>
1011
#include <test/fuzz/FuzzedDataProvider.h>
1112
#include <test/fuzz/util.h>
1213
#include <test/util/net.h>
1314
#include <util/sock.h>
1415
#include <util/time.h>
15-
#include <version.h>
1616

1717
#include <array>
1818
#include <cassert>

‎src/test/net_peer_connection_tests.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <netbase.h>
1111
#include <netgroup.h>
1212
#include <node/connection_types.h>
13+
#include <node/protocol_version.h>
1314
#include <protocol.h>
1415
#include <random.h>
1516
#include <test/util/logging.h>
@@ -18,7 +19,6 @@
1819
#include <test/util/setup_common.h>
1920
#include <tinyformat.h>
2021
#include <util/chaintype.h>
21-
#include <version.h>
2222

2323
#include <algorithm>
2424
#include <cstdint>

‎src/test/net_tests.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <netaddress.h>
1313
#include <netbase.h>
1414
#include <netmessagemaker.h>
15+
#include <node/protocol_version.h>
1516
#include <serialize.h>
1617
#include <span.h>
1718
#include <streams.h>
@@ -22,7 +23,6 @@
2223
#include <util/strencodings.h>
2324
#include <util/string.h>
2425
#include <validation.h>
25-
#include <version.h>
2626

2727
#include <boost/test/unit_test.hpp>
2828

0 commit comments

Comments
 (0)