scripted-diff: Move minisketchwrapper to src/node

-BEGIN VERIFY SCRIPT-
 # Move module
 git mv src/minisketchwrapper.cpp src/node/
 git mv src/minisketchwrapper.h   src/node/
 # Replacements
 sed -i 's:minisketchwrapper:node/minisketchwrapper:g'     $(git grep -l minisketchwrapper)
 sed -i 's:MINISKETCHWRAPPER_H:NODE_MINISKETCHWRAPPER_H:g' $(git grep -l MINISKETCHWRAPPER_H)
 sed -i 's:DBWRAPPER_H:NODE_MINISKETCHWRAPPER_H:g'         ./src/node/minisketchwrapper.h
-END VERIFY SCRIPT-
This commit is contained in:
MarcoFalke 2021-11-12 10:19:33 +01:00
parent 1ff265a20c
commit fa8f60e311
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
4 changed files with 7 additions and 7 deletions

View file

@ -167,7 +167,7 @@ BITCOIN_CORE_H = \
memusage.h \
merkleblock.h \
miner.h \
minisketchwrapper.h \
node/minisketchwrapper.h \
net.h \
net_permissions.h \
net_processing.h \
@ -335,7 +335,7 @@ libbitcoin_server_a_SOURCES = \
init.cpp \
mapport.cpp \
miner.cpp \
minisketchwrapper.cpp \
node/minisketchwrapper.cpp \
net.cpp \
net_processing.cpp \
node/blockstorage.cpp \

View file

@ -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 <minisketchwrapper.h>
#include <node/minisketchwrapper.h>
#include <logging.h>
#include <util/time.h>

View file

@ -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_MINISKETCHWRAPPER_H
#define BITCOIN_MINISKETCHWRAPPER_H
#ifndef BITCOIN_NODE_MINISKETCHWRAPPER_H
#define BITCOIN_NODE_MINISKETCHWRAPPER_H
#include <minisketch.h>
#include <cstddef>
@ -14,4 +14,4 @@ Minisketch MakeMinisketch32(size_t capacity);
/** Wrapper around Minisketch::CreateFP. */
Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits);
#endif // BITCOIN_DBWRAPPER_H
#endif // BITCOIN_NODE_MINISKETCHWRAPPER_H

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <minisketch.h>
#include <minisketchwrapper.h>
#include <node/minisketchwrapper.h>
#include <random.h>
#include <test/util/setup_common.h>