diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-12 10:19:33 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-11-12 10:56:08 +0100 |
commit | fa8f60e31102e1153ad1452fbced51e54487a3d4 (patch) | |
tree | 2cdbc4e6776c99b1aba5796383951e89b6bcce89 /src/node/minisketchwrapper.h | |
parent | 1ff265a20c36ada4c7b1c5c88d31eb92ec9e8420 (diff) |
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-
Diffstat (limited to 'src/node/minisketchwrapper.h')
-rw-r--r-- | src/node/minisketchwrapper.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/node/minisketchwrapper.h b/src/node/minisketchwrapper.h new file mode 100644 index 0000000000..426781d508 --- /dev/null +++ b/src/node/minisketchwrapper.h @@ -0,0 +1,17 @@ +// Copyright (c) 2021 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_NODE_MINISKETCHWRAPPER_H +#define BITCOIN_NODE_MINISKETCHWRAPPER_H + +#include <minisketch.h> +#include <cstddef> +#include <cstdint> + +/** Wrapper around Minisketch::Minisketch(32, implementation, capacity). */ +Minisketch MakeMinisketch32(size_t capacity); +/** Wrapper around Minisketch::CreateFP. */ +Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits); + +#endif // BITCOIN_NODE_MINISKETCHWRAPPER_H |