Skip to content

Commit d092309

Browse files
committed
Merge bitcoin/bitcoin#23491: scripted-diff: Move minisketchwrapper to src/node
faba1ab Sort file list after rename (MarcoFalke) fa8f60e scripted-diff: Move minisketchwrapper to src/node (MarcoFalke) Pull request description: The newly added wrapper is currently in the node library, but not placed in the node directory. While it is possible to use the wrapper outside of a node context (for example in a utility), it seems unlikely. Either way, I think the wrapper should either be moved to the util lib+dir or the node lib+dir, not something in-between. Also, fix incorrect comment `BITCOIN_DBWRAPPER_H`. ACKs for top commit: fanquake: ACK faba1ab. I saw the comment in #21515, however given there hasn't been any new activity there, I'm going to merge this now. Tree-SHA512: fccc0cfd1fee661152a1378587b96795ffb7a7eceb6d2c27ea5401993fd8b9c0a92579fdba61203917ae6565269cb28d0973464fb6201dabf72a5143495d3e77
2 parents cf63d63 + faba1ab commit d092309

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

src/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ BITCOIN_CORE_H = \
167167
memusage.h \
168168
merkleblock.h \
169169
miner.h \
170-
minisketchwrapper.h \
171170
net.h \
172171
net_permissions.h \
173172
net_processing.h \
@@ -179,6 +178,7 @@ BITCOIN_CORE_H = \
179178
node/coin.h \
180179
node/coinstats.h \
181180
node/context.h \
181+
node/minisketchwrapper.h \
182182
node/psbt.h \
183183
node/transaction.h \
184184
node/ui_interface.h \
@@ -335,14 +335,14 @@ libbitcoin_server_a_SOURCES = \
335335
init.cpp \
336336
mapport.cpp \
337337
miner.cpp \
338-
minisketchwrapper.cpp \
339338
net.cpp \
340339
net_processing.cpp \
341340
node/blockstorage.cpp \
342341
node/coin.cpp \
343342
node/coinstats.cpp \
344343
node/context.cpp \
345344
node/interfaces.cpp \
345+
node/minisketchwrapper.cpp \
346346
node/psbt.cpp \
347347
node/transaction.cpp \
348348
node/ui_interface.cpp \

src/Makefile.test.include

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,19 @@ endif
6464

6565
# test_bitcoin binary #
6666
BITCOIN_TESTS =\
67-
test/arith_uint256_tests.cpp \
68-
test/scriptnum10.h \
6967
test/addrman_tests.cpp \
70-
test/amount_tests.cpp \
7168
test/allocator_tests.cpp \
69+
test/amount_tests.cpp \
70+
test/arith_uint256_tests.cpp \
7271
test/base32_tests.cpp \
7372
test/base58_tests.cpp \
7473
test/base64_tests.cpp \
7574
test/bech32_tests.cpp \
7675
test/bip32_tests.cpp \
7776
test/blockchain_tests.cpp \
7877
test/blockencodings_tests.cpp \
79-
test/blockfilter_tests.cpp \
8078
test/blockfilter_index_tests.cpp \
79+
test/blockfilter_tests.cpp \
8180
test/bloom_tests.cpp \
8281
test/bswap_tests.cpp \
8382
test/checkqueue_tests.cpp \
@@ -87,6 +86,7 @@ BITCOIN_TESTS =\
8786
test/compress_tests.cpp \
8887
test/crypto_tests.cpp \
8988
test/cuckoocache_tests.cpp \
89+
test/dbwrapper_tests.cpp \
9090
test/denialofservice_tests.cpp \
9191
test/descriptor_tests.cpp \
9292
test/flatfile_tests.cpp \
@@ -98,13 +98,11 @@ BITCOIN_TESTS =\
9898
test/key_io_tests.cpp \
9999
test/key_tests.cpp \
100100
test/logging_tests.cpp \
101-
test/dbwrapper_tests.cpp \
102-
test/validation_tests.cpp \
103101
test/mempool_tests.cpp \
104102
test/merkle_tests.cpp \
105103
test/merkleblock_tests.cpp \
106-
test/minisketch_tests.cpp \
107104
test/miner_tests.cpp \
105+
test/minisketch_tests.cpp \
108106
test/multisig_tests.cpp \
109107
test/net_peer_eviction_tests.cpp \
110108
test/net_tests.cpp \
@@ -124,6 +122,7 @@ BITCOIN_TESTS =\
124122
test/script_parse_tests.cpp \
125123
test/script_standard_tests.cpp \
126124
test/script_tests.cpp \
125+
test/scriptnum10.h \
127126
test/scriptnum_tests.cpp \
128127
test/serfloat_tests.cpp \
129128
test/serialize_tests.cpp \
@@ -135,21 +134,22 @@ BITCOIN_TESTS =\
135134
test/streams_tests.cpp \
136135
test/sync_tests.cpp \
137136
test/system_tests.cpp \
138-
test/util_threadnames_tests.cpp \
139137
test/timedata_tests.cpp \
140138
test/torcontrol_tests.cpp \
141139
test/transaction_tests.cpp \
142140
test/txindex_tests.cpp \
143-
test/txrequest_tests.cpp \
144141
test/txpackage_tests.cpp \
142+
test/txrequest_tests.cpp \
145143
test/txvalidation_tests.cpp \
146144
test/txvalidationcache_tests.cpp \
147145
test/uint256_tests.cpp \
148146
test/util_tests.cpp \
147+
test/util_threadnames_tests.cpp \
149148
test/validation_block_tests.cpp \
150149
test/validation_chainstate_tests.cpp \
151150
test/validation_chainstatemanager_tests.cpp \
152151
test/validation_flush_tests.cpp \
152+
test/validation_tests.cpp \
153153
test/validationinterface_tests.cpp \
154154
test/versionbits_tests.cpp
155155

src/minisketchwrapper.cpp renamed to src/node/minisketchwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <minisketchwrapper.h>
5+
#include <node/minisketchwrapper.h>
66

77
#include <logging.h>
88
#include <util/time.h>

src/minisketchwrapper.h renamed to src/node/minisketchwrapper.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
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_MINISKETCHWRAPPER_H
6-
#define BITCOIN_MINISKETCHWRAPPER_H
5+
#ifndef BITCOIN_NODE_MINISKETCHWRAPPER_H
6+
#define BITCOIN_NODE_MINISKETCHWRAPPER_H
77

88
#include <minisketch.h>
9+
910
#include <cstddef>
1011
#include <cstdint>
1112

@@ -14,4 +15,4 @@ Minisketch MakeMinisketch32(size_t capacity);
1415
/** Wrapper around Minisketch::CreateFP. */
1516
Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits);
1617

17-
#endif // BITCOIN_DBWRAPPER_H
18+
#endif // BITCOIN_NODE_MINISKETCHWRAPPER_H

src/test/minisketch_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <minisketch.h>
6-
#include <minisketchwrapper.h>
6+
#include <node/minisketchwrapper.h>
77
#include <random.h>
88
#include <test/util/setup_common.h>
99

0 commit comments

Comments
 (0)