repo_id
stringlengths
0
42
file_path
stringlengths
15
97
content
stringlengths
2
2.41M
__index_level_0__
int64
0
0
bitcoin/src
bitcoin/src/test/flatfile_tests.cpp
// Copyright (c) 2019-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <clientversion.h> #include <common/args.h> #include <flatfile.h> #include <streams.h> #include <test/util/setup_comm...
0
bitcoin/src
bitcoin/src/test/txvalidation_tests.cpp
// Copyright (c) 2017-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. #include <consensus/validation.h> #include <key_io.h> #include <policy/packages.h> #include <policy/policy.h> #include <primi...
0
bitcoin/src
bitcoin/src/test/cuckoocache_tests.cpp
// Copyright (c) 2012-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. #include <cuckoocache.h> #include <random.h> #include <script/sigcache.h> #include <test/util/random.h> #include <test/util/s...
0
bitcoin/src
bitcoin/src/test/reverselock_tests.cpp
// Copyright (c) 2015-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. #include <sync.h> #include <test/util/setup_common.h> #include <boost/test/unit_test.hpp> #include <stdexcept> BOOST_AUTO_...
0
bitcoin/src
bitcoin/src/test/blockencodings_tests.cpp
// Copyright (c) 2011-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <blockencodings.h> #include <chainparams.h> #include <consensus/merkle.h> #include <pow.h> #include <streams.h> #inc...
0
bitcoin/src
bitcoin/src/test/bip324_tests.cpp
// Copyright (c) 2023 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bip324.h> #include <chainparams.h> #include <key.h> #include <pubkey.h> #include <span.h> #include <test/util/random.h> ...
0
bitcoin/src
bitcoin/src/test/translation_tests.cpp
// Copyright (c) 2023 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <tinyformat.h> #include <util/translation.h> #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_SUITE(translation_test...
0
bitcoin/src
bitcoin/src/test/merkleblock_tests.cpp
// Copyright (c) 2012-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. #include <merkleblock.h> #include <test/util/setup_common.h> #include <uint256.h> #include <boost/test/unit_test.hpp> #incl...
0
bitcoin/src
bitcoin/src/test/bswap_tests.cpp
// Copyright (c) 2016-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. #include <compat/byteswap.h> #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_SUITE(bswap_tests) BOOST_AUTO_TEST_CASE(b...
0
bitcoin/src
bitcoin/src/test/serialize_tests.cpp
// Copyright (c) 2012-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <hash.h> #include <serialize.h> #include <streams.h> #include <test/util/setup_common.h> #include <util/strencodings...
0
bitcoin/src
bitcoin/src/test/base32_tests.cpp
// Copyright (c) 2012-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/strencodings.h> #include <boost/test/unit_test.hpp> #include <string> using namespace std::literals; BOOST_...
0
bitcoin/src
bitcoin/src/test/netbase_tests.cpp
// Copyright (c) 2012-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <net_permissions.h> #include <netaddress.h> #include <netbase.h> #include <netgroup.h> #include <protocol.h> #includ...
0
bitcoin/src
bitcoin/src/test/key_io_tests.cpp
// Copyright (c) 2011-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/data/key_io_invalid.json.h> #include <test/data/key_io_valid.json.h> #include <key.h> #include <key_io.h> #in...
0
bitcoin/src/test
bitcoin/src/test/util/transaction_utils.h
// Copyright (c) 2019-2020 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_TEST_UTIL_TRANSACTION_UTILS_H #define BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H #include <primitives/transaction...
0
bitcoin/src/test
bitcoin/src/test/util/index.h
// Copyright (c) 2020-2022 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_TEST_UTIL_INDEX_H #define BITCOIN_TEST_UTIL_INDEX_H class BaseIndex; namespace util { class SignalInterrupt;...
0
bitcoin/src/test
bitcoin/src/test/util/mining.cpp
// Copyright (c) 2019-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/mining.h> #include <chainparams.h> #include <consensus/merkle.h> #include <consensus/validation.h> #incl...
0
bitcoin/src/test
bitcoin/src/test/util/validation.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/validation.h> #include <util/check.h> #include <util/time.h> #include <validation.h> #include <validatio...
0
bitcoin/src/test
bitcoin/src/test/util/blockfilter.h
// Copyright (c) 2019 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_TEST_UTIL_BLOCKFILTER_H #define BITCOIN_TEST_UTIL_BLOCKFILTER_H #include <blockfilter.h> class CBlockIndex; name...
0
bitcoin/src/test
bitcoin/src/test/util/script.h
// 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_TEST_UTIL_SCRIPT_H #define BITCOIN_TEST_UTIL_SCRIPT_H #include <crypto/sha256.h> #include <script/script.h> stat...
0
bitcoin/src/test
bitcoin/src/test/util/coins.cpp
// Copyright (c) 2023 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/coins.h> #include <coins.h> #include <primitives/transaction.h> #include <script/script.h> #include <test/uti...
0
bitcoin/src/test
bitcoin/src/test/util/net.h
// Copyright (c) 2020-2022 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_TEST_UTIL_NET_H #define BITCOIN_TEST_UTIL_NET_H #include <compat/compat.h> #include <net.h> #include <net_pe...
0
bitcoin/src/test
bitcoin/src/test/util/logging.cpp
// Copyright (c) 2019-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. #include <test/util/logging.h> #include <logging.h> #include <noui.h> #include <tinyformat.h> #include <stdexcept> DebugLo...
0
bitcoin/src/test
bitcoin/src/test/util/mining.h
// Copyright (c) 2019-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_TEST_UTIL_MINING_H #define BITCOIN_TEST_UTIL_MINING_H #include <node/miner.h> #include <memory> #include <s...
0
bitcoin/src/test
bitcoin/src/test/util/script.cpp
// 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. #include <script/interpreter.h> #include <test/util/script.h> bool IsValidFlagCombination(unsigned flags) { if (flags & SCRIP...
0
bitcoin/src/test
bitcoin/src/test/util/random.cpp
// Copyright (c) 2023 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/random.h> #include <logging.h> #include <random.h> #include <uint256.h> #include <cstdlib> #include <string>...
0
bitcoin/src/test
bitcoin/src/test/util/poolresourcetester.h
// Copyright (c) 2022 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_TEST_UTIL_POOLRESOURCETESTER_H #define BITCOIN_TEST_UTIL_POOLRESOURCETESTER_H #include <support/allocators/pool.h...
0
bitcoin/src/test
bitcoin/src/test/util/logging.h
// Copyright (c) 2019-2022 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_TEST_UTIL_LOGGING_H #define BITCOIN_TEST_UTIL_LOGGING_H #include <util/macros.h> #include <functional> #inc...
0
bitcoin/src/test
bitcoin/src/test/util/txmempool.cpp
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/txmempool.h> #include <chainparams.h> #include <node/context.h> #include <node/mempool_args.h> #include <txme...
0
bitcoin/src/test
bitcoin/src/test/util/net.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/net.h> #include <net.h> #include <net_processing.h> #include <netaddress.h> #include <netmessagemaker.h>...
0
bitcoin/src/test
bitcoin/src/test/util/README.md
# Test library This contains files for the test library, which is used by the test binaries (unit tests, benchmarks, fuzzers, gui tests). Generally, the files in this folder should be well-separated modules. New code should be added to existing modules or (when in doubt) a new module should be created. The utilities...
0
bitcoin/src/test
bitcoin/src/test/util/chainstate.h
// Copyright (c) 2021-2022 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_TEST_UTIL_CHAINSTATE_H #define BITCOIN_TEST_UTIL_CHAINSTATE_H #include <clientversion.h> #include <logging...
0
bitcoin/src/test
bitcoin/src/test/util/json.h
// Copyright (c) 2023 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_TEST_UTIL_JSON_H #define BITCOIN_TEST_UTIL_JSON_H #include <string> #include <univalue.h> UniValue read_json(co...
0
bitcoin/src/test
bitcoin/src/test/util/coins.h
// Copyright (c) 2023 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_TEST_UTIL_COINS_H #define BITCOIN_TEST_UTIL_COINS_H #include <primitives/transaction.h> class CCoinsViewCache; ...
0
bitcoin/src/test
bitcoin/src/test/util/blockfilter.cpp
// Copyright (c) 2019-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. #include <test/util/blockfilter.h> #include <chainparams.h> #include <node/blockstorage.h> #include <primitives/block.h> #in...
0
bitcoin/src/test
bitcoin/src/test/util/validation.h
// Copyright (c) 2020-2022 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_TEST_UTIL_VALIDATION_H #define BITCOIN_TEST_UTIL_VALIDATION_H #include <validation.h> class CValidationInte...
0
bitcoin/src/test
bitcoin/src/test/util/str.h
// Copyright (c) 2019 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_TEST_UTIL_STR_H #define BITCOIN_TEST_UTIL_STR_H #include <string> bool CaseInsensitiveEqual(const std::string& s...
0
bitcoin/src/test
bitcoin/src/test/util/setup_common.h
// Copyright (c) 2015-2022 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_TEST_UTIL_SETUP_COMMON_H #define BITCOIN_TEST_UTIL_SETUP_COMMON_H #include <common/args.h> // IWYU pragma: e...
0
bitcoin/src/test
bitcoin/src/test/util/xoroshiro128plusplus.h
// Copyright (c) 2022 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_TEST_UTIL_XOROSHIRO128PLUSPLUS_H #define BITCOIN_TEST_UTIL_XOROSHIRO128PLUSPLUS_H #include <cstdint> #include <li...
0
bitcoin/src/test
bitcoin/src/test/util/setup_common.cpp
// Copyright (c) 2011-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/setup_common.h> #include <kernel/validation_cache_sizes.h> #include <addrman.h> #include <banman.h> #in...
0
bitcoin/src/test
bitcoin/src/test/util/json.cpp
// Copyright (c) 2023 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/json.h> #include <string> #include <util/check.h> #include <univalue.h> UniValue read_json(const std::strin...
0
bitcoin/src/test
bitcoin/src/test/util/txmempool.h
// Copyright (c) 2022 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_TEST_UTIL_TXMEMPOOL_H #define BITCOIN_TEST_UTIL_TXMEMPOOL_H #include <policy/packages.h> #include <txmempool.h> #...
0
bitcoin/src/test
bitcoin/src/test/util/str.cpp
// Copyright (c) 2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/str.h> #include <cstdint> #include <string> bool CaseInsensitiveEqual(const std::string& s1, const std::stri...
0
bitcoin/src/test
bitcoin/src/test/util/random.h
// Copyright (c) 2023 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_TEST_UTIL_RANDOM_H #define BITCOIN_TEST_UTIL_RANDOM_H #include <consensus/amount.h> #include <random.h> #include ...
0
bitcoin/src/test
bitcoin/src/test/util/index.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/util/index.h> #include <index/base.h> #include <util/check.h> #include <util/signalinterrupt.h> #include <uti...
0
bitcoin/src/test
bitcoin/src/test/util/transaction_utils.cpp
// Copyright (c) 2019-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <coins.h> #include <script/signingprovider.h> #include <test/util/transaction_utils.h> CMutableTransaction BuildCre...
0
bitcoin/src/test
bitcoin/src/test/fuzz/psbt.cpp
// Copyright (c) 2019-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <node/psbt.h> #include <psbt.h> #include <pub...
0
bitcoin/src/test
bitcoin/src/test/fuzz/fee_rate.cpp
// Copyright (c) 2020-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. #include <consensus/amount.h> #include <policy/feerate.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz....
0
bitcoin/src/test
bitcoin/src/test/fuzz/rpc.cpp
// Copyright (c) 2021-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <base58.h> #include <key.h> #include <key_io.h> #include <primitives/block.h> #include <primitives/transaction.h> #i...
0
bitcoin/src/test
bitcoin/src/test/fuzz/txorphan.cpp
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/amount.h> #include <consensus/validation.h> #include <net_processing.h> #include <node/eviction.h> #include <p...
0
bitcoin/src/test
bitcoin/src/test/fuzz/flatfile.cpp
// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <flatfile.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/prevector.cpp
// Copyright (c) 2015-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <prevector.h> #include <vector> #include <re...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script_descriptor_cache.cpp
// Copyright (c) 2020-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. #include <pubkey.h> #include <script/descriptor.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #inc...
0
bitcoin/src/test
bitcoin/src/test/fuzz/timedata.cpp
// Copyright (c) 2020-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. #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <timedata.h> #inc...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script_sigcache.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chainparams.h> #include <key.h> #include <pubkey.h> #include <script/sigcache.h> #include <test/fuzz/FuzzedDataProv...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script_ops.cpp
// Copyright (c) 2020-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. #include <script/script.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/validation_load_mempool.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <kernel/mempool_persist.h> #include <node/mempool_args.h> #include <node/mempool_persist_args.h> #include <test/fuz...
0
bitcoin/src/test
bitcoin/src/test/fuzz/crypto_chacha20.cpp
// Copyright (c) 2020-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. #include <crypto/chacha20.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h...
0
bitcoin/src/test
bitcoin/src/test/fuzz/minisketch.cpp
// 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. #include <minisketch.h> #include <node/minisketchwrapper.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/util.cpp
// Copyright (c) 2021-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/amount.h> #include <pubkey.h> #include <test/fuzz/util.h> #include <test/util/script.h> #include <util/ch...
0
bitcoin/src/test
bitcoin/src/test/fuzz/crypto_diff_fuzz_chacha20.cpp
// Copyright (c) 2020-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. #include <crypto/chacha20.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h...
0
bitcoin/src/test
bitcoin/src/test/fuzz/signature_checker.cpp
// Copyright (c) 2009-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pubkey.h> #include <script/interpreter.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #in...
0
bitcoin/src/test
bitcoin/src/test/fuzz/crypto_poly1305.cpp
// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <crypto/poly1305.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #i...
0
bitcoin/src/test
bitcoin/src/test/fuzz/spanparsing.cpp
// Copyright (c) 2019-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <util/spanparsing.h> FUZZ_TARGET(spanparsing)...
0
bitcoin/src/test
bitcoin/src/test/fuzz/key_io.cpp
// Copyright (c) 2020-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. #include <chainparams.h> #include <key_io.h> #include <test/fuzz/fuzz.h> #include <util/chaintype.h> #include <cassert> #inc...
0
bitcoin/src/test
bitcoin/src/test/fuzz/golomb_rice.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <blockfilter.h> #include <serialize.h> #include <streams.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test...
0
bitcoin/src/test
bitcoin/src/test/fuzz/crypto_hkdf_hmac_sha256_l32.cpp
// Copyright (c) 2020-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. #include <crypto/hkdf_sha256_32.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/...
0
bitcoin/src/test
bitcoin/src/test/fuzz/rolling_bloom_filter.cpp
// Copyright (c) 2020-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. #include <common/bloom.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #...
0
bitcoin/src/test
bitcoin/src/test/fuzz/locale.cpp
// Copyright (c) 2020-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. #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <tinyformat.h> #include <util/strencodings.h> ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/message.cpp
// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chainparams.h> #include <key_io.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/...
0
bitcoin/src/test
bitcoin/src/test/fuzz/miniscript.cpp
// Copyright (c) 2021-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <core_io.h> #include <hash.h> #include <key.h> #include <script/miniscript.h> #include <script/script.h> #include <s...
0
bitcoin/src/test
bitcoin/src/test/fuzz/pow.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chain.h> #include <chainparams.h> #include <pow.h> #include <primitives/block.h> #include <test/fuzz/FuzzedDataProv...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script.cpp
// Copyright (c) 2019-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chainparams.h> #include <compressor.h> #include <core_io.h> #include <core_memusage.h> #include <key_io.h> #include...
0
bitcoin/src/test
bitcoin/src/test/fuzz/secp256k1_ec_seckey_import_export_der.cpp
// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <key.h> #include <secp256k1.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script_sign.cpp
// Copyright (c) 2020-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. #include <chainparams.h> #include <key.h> #include <psbt.h> #include <pubkey.h> #include <script/keyorigin.h> #include <scrip...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script_bitcoin_consensus.cpp
// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <script/bitcoinconsensus.h> #include <script/interpreter.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz...
0
bitcoin/src/test
bitcoin/src/test/fuzz/random.cpp
// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <random.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <a...
0
bitcoin/src/test
bitcoin/src/test/fuzz/coins_view.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <coins.h> #include <consensus/amount.h> #include <consensus/tx_check.h> #include <consensus/tx_verify.h> #include <c...
0
bitcoin/src/test
bitcoin/src/test/fuzz/poolresource.cpp
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <span.h> #include <support/allocators/pool.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #incl...
0
bitcoin/src/test
bitcoin/src/test/fuzz/FuzzedDataProvider.h
//===- FuzzedDataProvider.h - Utility header for fuzz targets ---*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
0
bitcoin/src/test
bitcoin/src/test/fuzz/block.cpp
// Copyright (c) 2019-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. #include <chainparams.h> #include <consensus/merkle.h> #include <consensus/validation.h> #include <core_io.h> #include <core_...
0
bitcoin/src/test
bitcoin/src/test/fuzz/netbase_dns_lookup.cpp
// Copyright (c) 2021-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <netaddress.h> #include <netbase.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <...
0
bitcoin/src/test
bitcoin/src/test/fuzz/parse_script.cpp
// Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <core_io.h> #include <script/script.h> #include <test/fuzz/fuzz.h> FUZZ_TARGET(parse_script) { const std::strin...
0
bitcoin/src/test
bitcoin/src/test/fuzz/connman.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <addrman.h> #include <chainparams.h> #include <common/args.h> #include <net.h> #include <netaddress.h> #include <pro...
0
bitcoin/src/test
bitcoin/src/test/fuzz/rbf.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <node/mempool_args.h> #include <policy/rbf.h> #include <primitives/transaction.h> #include <sync.h> #include <test/f...
0
bitcoin/src/test
bitcoin/src/test/fuzz/bitdeque.cpp
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <random.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/util.h> #include <util/bitdeque.h> #include <de...
0
bitcoin/src/test
bitcoin/src/test/fuzz/bloom_filter.cpp
// Copyright (c) 2020-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. #include <common/bloom.h> #include <primitives/transaction.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/f...
0
bitcoin/src/test
bitcoin/src/test/fuzz/partially_downloaded_block.cpp
#include <blockencodings.h> #include <consensus/merkle.h> #include <consensus/validation.h> #include <primitives/block.h> #include <primitives/transaction.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <test/fuzz/util/mempool.h> #include <test/util/setup_co...
0
bitcoin/src/test
bitcoin/src/test/fuzz/policy_estimator.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <kernel/mempool_entry.h> #include <policy/fees.h> #include <policy/fees_args.h> #include <primitives/transaction.h> ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/process_message.cpp
// Copyright (c) 2020-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/consensus.h> #include <net.h> #include <net_processing.h> #include <primitives/transaction.h> #include...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script_flags.cpp
// Copyright (c) 2009-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. #include <consensus/amount.h> #include <primitives/transaction.h> #include <script/interpreter.h> #include <serialize.h> #inc...
0
bitcoin/src/test
bitcoin/src/test/fuzz/multiplication_overflow.cpp
// Copyright (c) 2020-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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <test/fuzz/FuzzedDataProvider.h> #include <tes...
0
bitcoin/src/test
bitcoin/src/test/fuzz/string.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <blockfilter.h> #include <clientversion.h> #include <common/args.h> #include <common/settings.h> #include <common/sy...
0
bitcoin/src/test
bitcoin/src/test/fuzz/txrequest.cpp
// Copyright (c) 2020-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. #include <crypto/common.h> #include <crypto/sha256.h> #include <crypto/siphash.h> #include <primitives/transaction.h> #includ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/merkleblock.cpp
// Copyright (c) 2020-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. #include <merkleblock.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #i...
0
bitcoin/src/test
bitcoin/src/test/fuzz/mini_miner.cpp
#include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <test/fuzz/util/mempool.h> #include <test/util/script.h> #include <test/util/setup_common.h> #include <test/util/txmempool.h> #include <test/util/mining.h> #include <node/mini_miner.h> #include <node/miner.h> #in...
0
bitcoin/src/test
bitcoin/src/test/fuzz/eval_script.cpp
// Copyright (c) 2009-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. #include <pubkey.h> #include <script/interpreter.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #i...
0
bitcoin/src/test
bitcoin/src/test/fuzz/http_request.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <httpserver.h> #include <netaddress.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #includ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/net.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chainparams.h> #include <net.h> #include <net_permissions.h> #include <netaddress.h> #include <protocol.h> #include...
0
bitcoin/src/test
bitcoin/src/test/fuzz/cuckoocache.cpp
// Copyright (c) 2020-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. #include <cuckoocache.h> #include <script/sigcache.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #...
0
bitcoin/src/test
bitcoin/src/test/fuzz/node_eviction.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <net.h> #include <protocol.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/f...
0