mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-20 14:05:23 +01:00
Merge bitcoin/bitcoin#23137: Move-only: bloom to src/common
fa2d611bed
style: Sort (MarcoFalke)fa1e5de2db
scripted-diff: Move bloom to src/common (MarcoFalke)fac303c504
refactor: Remove unused MakeUCharSpan (MarcoFalke) Pull request description: To avoid having all files at the top level `./src` directory, start moving them to their respective sub directory according to https://github.com/bitcoin/bitcoin/issues/15732. `bloom` currently depends on libconsensus (`CTransaction`, `CScript`, ...) and it is currently located in the libcommon. Thus, move it to `src/common/`. (libutil in `src/util/` is for stuff that doesn't depend on libconsensus). ACKs for top commit: theStack: Code-review ACKfa2d611bed
ryanofsky: Code review ACKfa2d611bed
fanquake: ACKfa2d611bed
- source shuffle starts now. Tree-SHA512: d2fbc31b81741e9f0be539e1149542c9ca39958c240e12e8e757d882beccd0f0debdc10dcce146a05f03ef9f5c6247900a461a7a4799b515e8716dfb9af1fde2
This commit is contained in:
commit
c53e95f22c
11 changed files with 17 additions and 17 deletions
|
@ -114,7 +114,6 @@ BITCOIN_CORE_H = \
|
|||
bech32.h \
|
||||
blockencodings.h \
|
||||
blockfilter.h \
|
||||
bloom.h \
|
||||
chain.h \
|
||||
chainparams.h \
|
||||
chainparamsbase.h \
|
||||
|
@ -122,6 +121,7 @@ BITCOIN_CORE_H = \
|
|||
checkqueue.h \
|
||||
clientversion.h \
|
||||
coins.h \
|
||||
common/bloom.h \
|
||||
compat.h \
|
||||
compat/assumptions.h \
|
||||
compat/byteswap.h \
|
||||
|
@ -529,9 +529,9 @@ libbitcoin_common_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|||
libbitcoin_common_a_SOURCES = \
|
||||
base58.cpp \
|
||||
bech32.cpp \
|
||||
bloom.cpp \
|
||||
chainparams.cpp \
|
||||
coins.cpp \
|
||||
common/bloom.cpp \
|
||||
compressor.cpp \
|
||||
core_read.cpp \
|
||||
core_write.cpp \
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#define BITCOIN_BANMAN_H
|
||||
|
||||
#include <addrdb.h>
|
||||
#include <bloom.h>
|
||||
#include <common/bloom.h>
|
||||
#include <fs.h>
|
||||
#include <net_types.h> // For banmap_t
|
||||
#include <sync.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
|
||||
#include <bench/bench.h>
|
||||
#include <bloom.h>
|
||||
#include <common/bloom.h>
|
||||
|
||||
static void RollingBloom(benchmark::Bench& bench)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <bloom.h>
|
||||
#include <common/bloom.h>
|
||||
|
||||
#include <hash.h>
|
||||
#include <primitives/transaction.h>
|
||||
|
@ -82,7 +82,7 @@ bool CBloomFilter::contains(const COutPoint& outpoint) const
|
|||
{
|
||||
CDataStream stream(SER_NETWORK, PROTOCOL_VERSION);
|
||||
stream << outpoint;
|
||||
return contains(MakeUCharSpan(stream));
|
||||
return contains(stream);
|
||||
}
|
||||
|
||||
bool CBloomFilter::IsWithinSizeConstraints() const
|
|
@ -2,8 +2,8 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef BITCOIN_BLOOM_H
|
||||
#define BITCOIN_BLOOM_H
|
||||
#ifndef BITCOIN_COMMON_BLOOM_H
|
||||
#define BITCOIN_COMMON_BLOOM_H
|
||||
|
||||
#include <serialize.h>
|
||||
#include <span.h>
|
||||
|
@ -124,4 +124,4 @@ private:
|
|||
int nHashFuncs;
|
||||
};
|
||||
|
||||
#endif // BITCOIN_BLOOM_H
|
||||
#endif // BITCOIN_COMMON_BLOOM_H
|
|
@ -6,10 +6,10 @@
|
|||
#ifndef BITCOIN_MERKLEBLOCK_H
|
||||
#define BITCOIN_MERKLEBLOCK_H
|
||||
|
||||
#include <common/bloom.h>
|
||||
#include <primitives/block.h>
|
||||
#include <serialize.h>
|
||||
#include <uint256.h>
|
||||
#include <primitives/block.h>
|
||||
#include <bloom.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
#define BITCOIN_NET_H
|
||||
|
||||
#include <addrman.h>
|
||||
#include <bloom.h>
|
||||
#include <chainparams.h>
|
||||
#include <common/bloom.h>
|
||||
#include <compat.h>
|
||||
#include <consensus/amount.h>
|
||||
#include <crypto/siphash.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <bloom.h>
|
||||
#include <common/bloom.h>
|
||||
|
||||
#include <clientversion.h>
|
||||
#include <key.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <bloom.h>
|
||||
#include <common/bloom.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <test/fuzz/FuzzedDataProvider.h>
|
||||
#include <test/fuzz/fuzz.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <bloom.h>
|
||||
#include <common/bloom.h>
|
||||
#include <test/fuzz/FuzzedDataProvider.h>
|
||||
#include <test/fuzz/fuzz.h>
|
||||
#include <test/fuzz/util.h>
|
||||
|
|
|
@ -22,7 +22,7 @@ unsigned-integer-overflow:arith_uint256.h
|
|||
unsigned-integer-overflow:basic_string.h
|
||||
unsigned-integer-overflow:bench/bench.h
|
||||
unsigned-integer-overflow:bitcoin-tx.cpp
|
||||
unsigned-integer-overflow:bloom.cpp
|
||||
unsigned-integer-overflow:common/bloom.cpp
|
||||
unsigned-integer-overflow:chain.cpp
|
||||
unsigned-integer-overflow:chain.h
|
||||
unsigned-integer-overflow:coded_stream.h
|
||||
|
@ -48,7 +48,7 @@ implicit-integer-sign-change:*/new_allocator.h
|
|||
implicit-integer-sign-change:addrman.h
|
||||
implicit-integer-sign-change:arith_uint256.cpp
|
||||
implicit-integer-sign-change:bech32.cpp
|
||||
implicit-integer-sign-change:bloom.cpp
|
||||
implicit-integer-sign-change:common/bloom.cpp
|
||||
implicit-integer-sign-change:chain.cpp
|
||||
implicit-integer-sign-change:chain.h
|
||||
implicit-integer-sign-change:coins.h
|
||||
|
|
Loading…
Add table
Reference in a new issue