repo_id
stringlengths
0
42
file_path
stringlengths
15
97
content
stringlengths
2
2.41M
__index_level_0__
int64
0
0
bitcoin/src/test
bitcoin/src/test/fuzz/kitchen_sink.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 <policy/fees.h> #include <rpc/util.h> #include <test/fuzz/FuzzedDataProvider.h> #include <t...
0
bitcoin/src/test
bitcoin/src/test/fuzz/headerssync.cpp
#include <arith_uint256.h> #include <chain.h> #include <chainparams.h> #include <headerssync.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <test/util/setup_common.h> #include <uint256.h> #include <util/chaintype.h> #include <util/time.h> #include <validation.h> #include <iterator> #include <vecto...
0
bitcoin/src/test
bitcoin/src/test/fuzz/parse_numbers.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 <test/fuzz/fuzz.h> #include <util/moneystr.h> #include <util/strencodings.h> #include <string> FUZZ_TARGET(parse_n...
0
bitcoin/src/test
bitcoin/src/test/fuzz/autofile.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 <span.h> #include <streams.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/f...
0
bitcoin/src/test
bitcoin/src/test/fuzz/descriptor_parse.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 <chainparams.h> #include <key_io.h> #include <pubkey.h> #include <script/descriptor.h> #include <test/fuzz/fuzz.h> #...
0
bitcoin/src/test
bitcoin/src/test/fuzz/p2p_transport_serialization.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 <hash.h> #include <net.h> #include <netmessagemaker.h> #include <protocol.h> #include <test...
0
bitcoin/src/test
bitcoin/src/test/fuzz/policy_estimator_io.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 <policy/fees.h> #include <policy/fees_args.h> #include <streams.h> #include <test/fuzz/FuzzedDataProvider.h> #includ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/parse_univalue.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 <chainparams.h> #include <rpc/client.h> #include <rpc/util.h> #include <test/fuzz/fuzz.h> #include <util/chaintype.h...
0
bitcoin/src/test
bitcoin/src/test/fuzz/float.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 <memusage.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #incl...
0
bitcoin/src/test
bitcoin/src/test/fuzz/utxo_snapshot.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 <chainparams.h> #include <consensus/validation.h> #include <node/utxo_snapshot.h> #include <test/fuzz/FuzzedDataProv...
0
bitcoin/src/test
bitcoin/src/test/fuzz/crypto_common.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/common.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #inc...
0
bitcoin/src/test
bitcoin/src/test/fuzz/coinscache_sim.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 <coins.h> #include <crypto/sha256.h> #include <primitives/transaction.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/...
0
bitcoin/src/test
bitcoin/src/test/fuzz/chain.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 <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #includ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/block_header.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 <primitives/block.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/netaddress.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 <netaddress.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util/net.h>...
0
bitcoin/src/test
bitcoin/src/test/fuzz/secp256k1_ecdsa_signature_parse_der_lax.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_interpreter.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 <primitives/transaction.h> #include <script/interpreter.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/...
0
bitcoin/src/test
bitcoin/src/test/fuzz/blockfilter.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 <blockfilter.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #...
0
bitcoin/src/test
bitcoin/src/test/fuzz/system.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/args.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/hex.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 <core_io.h> #include <primitives/block.h> #include <pubkey.h> #include <rpc/util.h> #include <test/fuzz/fuzz.h> #inc...
0
bitcoin/src/test
bitcoin/src/test/fuzz/fuzz.h
// 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. #ifndef BITCOIN_TEST_FUZZ_FUZZ_H #define BITCOIN_TEST_FUZZ_FUZZ_H #include <span.h> #include <cstdint> #include <functional...
0
bitcoin/src/test
bitcoin/src/test/fuzz/utxo_total_supply.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 <consensus/consensus.h> #include <consensus/merkle.h> #include <kernel/coinstats.h> #include <no...
0
bitcoin/src/test
bitcoin/src/test/fuzz/util.h
// 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. #ifndef BITCOIN_TEST_FUZZ_UTIL_H #define BITCOIN_TEST_FUZZ_UTIL_H #include <addresstype.h> #include <arith_uint256.h> #inclu...
0
bitcoin/src/test
bitcoin/src/test/fuzz/bech32.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 <bech32.h> #include <test/fuzz/fuzz.h> #include <test/util/str.h> #include <util/strencodings.h> #include <cassert>...
0
bitcoin/src/test
bitcoin/src/test/fuzz/bip324.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 <span.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz....
0
bitcoin/src/test
bitcoin/src/test/fuzz/socks5.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 <netaddress.h> #include <netbase.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <...
0
bitcoin/src/test
bitcoin/src/test/fuzz/deserialize.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 <addrdb.h> #include <addrman.h> #include <addrman_impl.h> #include <blockencodings.h> #include <blockfilter.h> #incl...
0
bitcoin/src/test
bitcoin/src/test/fuzz/process_messages.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 <protocol.h> #include <script/scrip...
0
bitcoin/src/test
bitcoin/src/test/fuzz/crypto.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/hmac_sha256.h> #include <crypto/hmac_sha512.h> #include <crypto/ripemd160.h> #include <crypto/sha1.h> #inclu...
0
bitcoin/src/test
bitcoin/src/test/fuzz/protocol.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 <protocol.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/package_eval.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 <consensus/validation.h> #include <node/context.h> #include <node/mempool_args.h> #include <node/miner.h> #include <test/...
0
bitcoin/src/test
bitcoin/src/test/fuzz/transaction.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 <coins.h> #include <consensus/tx_check.h> #include <consensus/tx_verify.h> #include <consen...
0
bitcoin/src/test
bitcoin/src/test/fuzz/integer.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 <arith_uint256.h> #include <common/args.h> #include <common/system.h> #include <compressor.h> #include <consensus/am...
0
bitcoin/src/test
bitcoin/src/test/fuzz/tx_out.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 <consensus/validation.h> #include <core_memusage.h> #include <policy/feerate.h> #include <policy/policy.h> #include ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/base_encode_decode.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/fuzz.h> #include <base58.h> #include <psbt.h> #include <util/strencodings.h> #include <util/string.h> #...
0
bitcoin/src/test
bitcoin/src/test/fuzz/scriptnum_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/addition_overflow.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/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <util/overflow.h> ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/torcontrol.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 <test/util/setup_c...
0
bitcoin/src/test
bitcoin/src/test/fuzz/net_permissions.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_permissions.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h...
0
bitcoin/src/test
bitcoin/src/test/fuzz/fuzz.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 <test/fuzz/fuzz.h> #include <netaddress.h> #include <netbase.h> #include <test/util/setup_common.h> #include <util/...
0
bitcoin/src/test
bitcoin/src/test/fuzz/decode_tx.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 <core_io.h> #include <primitives/transaction.h> #include <test/fuzz/fuzz.h> #include <util/strencodings.h> #include...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script_format.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 <consensus/consensus.h> #include <core_io.h> #include <policy/policy.h> #include <script/sc...
0
bitcoin/src/test
bitcoin/src/test/fuzz/fees.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/fees.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/script_assets_test_minimizer.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/fuzz/fuzz.h> #include <primitives/transaction.h> #include <pubkey.h> #include <script/interpreter.h> #include...
0
bitcoin/src/test
bitcoin/src/test/fuzz/buffered_file.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 <span.h> #include <streams.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/f...
0
bitcoin/src/test
bitcoin/src/test/fuzz/asmap_direct.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 <netaddress.h> #include <util/asmap.h> #include <test/fuzz/fuzz.h> #include <cstdint> #include <optional> #include ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/versionbits.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 <chain.h> #include <chainparams.h> #include <common/args.h> #include <consensus/params.h> #include <primitives/block...
0
bitcoin/src/test
bitcoin/src/test/fuzz/strprintf.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 <tinyformat.h> #in...
0
bitcoin/src/test
bitcoin/src/test/fuzz/crypto_aes256.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/aes.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/key.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 <key_io.h> #include <outputtype.h> #include <policy/policy.h> #include <pu...
0
bitcoin/src/test
bitcoin/src/test/fuzz/signet.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 <consensus/validation.h> #include <primitives/block.h> #include <signet.h> #include <stream...
0
bitcoin/src/test
bitcoin/src/test/fuzz/banman.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 <banman.h> #include <common/args.h> #include <netaddress.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test...
0
bitcoin/src/test
bitcoin/src/test/fuzz/tx_in.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 <consensus/validation.h> #include <core_memusage.h> #include <policy/policy.h> #include <primitives/transaction.h> #...
0
bitcoin/src/test
bitcoin/src/test/fuzz/addrman.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 <addrdb.h> #include <addrman.h> #include <addrman_impl.h> #include <chainparams.h> #include <common/args.h> #include...
0
bitcoin/src/test
bitcoin/src/test/fuzz/asmap.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 <netaddress.h> #include <netgroup.h> #include <test/fuzz/fuzz.h> #include <util/asmap.h> #include <cstdint> #includ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/span.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 <span.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <cas...
0
bitcoin/src/test
bitcoin/src/test/fuzz/primitives_transaction.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 <primitives/transaction.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util...
0
bitcoin/src/test
bitcoin/src/test/fuzz/parse_hd_keypath.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 <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #include <util/bip32.h> #i...
0
bitcoin/src/test
bitcoin/src/test/fuzz/tx_pool.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/validation.h> #include <node/context.h> #include <node/mempool_args.h> #include <node/miner.h> #include <...
0
bitcoin/src/test
bitcoin/src/test/fuzz/load_external_block_file.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 <clientversion.h> #include <flatfile.h> #include <test/fuzz/FuzzedDataProvider.h> #include ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/checkqueue.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 <checkqueue.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/muhash.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/muhash.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> ...
0
bitcoin/src/test
bitcoin/src/test/fuzz/crypto_aes256cbc.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/aes.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #i...
0
bitcoin/src/test/fuzz
bitcoin/src/test/fuzz/util/descriptor.cpp
// Copyright (c) 2023-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 <test/fuzz/util/descriptor.h> void MockedDescriptorConverter::Init() { // The data to use as a private key o...
0
bitcoin/src/test/fuzz
bitcoin/src/test/fuzz/util/net.h
// 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. #ifndef BITCOIN_TEST_FUZZ_UTIL_NET_H #define BITCOIN_TEST_FUZZ_UTIL_NET_H #include <net.h> #include <net_permissions.h> #inc...
0
bitcoin/src/test/fuzz
bitcoin/src/test/fuzz/util/mempool.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/consensus.h> #include <kernel/mempool_entry.h> #include <primitives/transaction....
0
bitcoin/src/test/fuzz
bitcoin/src/test/fuzz/util/descriptor.h
// Copyright (c) 2023-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. #ifndef BITCOIN_TEST_FUZZ_UTIL_DESCRIPTOR_H #define BITCOIN_TEST_FUZZ_UTIL_DESCRIPTOR_H #include <key_io.h> #include <uti...
0
bitcoin/src/test/fuzz
bitcoin/src/test/fuzz/util/net.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 <test/fuzz/util/net.h> #include <compat/compat.h> #include <netaddress.h> #include <node/protocol_version.h> #inclu...
0
bitcoin/src/test/fuzz
bitcoin/src/test/fuzz/util/mempool.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_FUZZ_UTIL_MEMPOOL_H #define BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H #include <kernel/mempool_entry.h> #include <val...
0
bitcoin/src/test
bitcoin/src/test/data/key_io_invalid.json
[ [ "" ], [ "x" ], [ "1GAdfviErV2Ew95FPtZyikz2qGP3gyCB6Hyu94sedAkPpA523m3fQwps9YKUZkKgQckGPKhRsFR" ], [ "37G2kMDLpmWVhimxRdzwNfE8JFvWXnJYnVcXeeGrek2qumdJuK7XArcVVpRtLLjRra3t64BEPF2" ], [ "giymtio7u7oqWtmC9YnvAEKkLF3JQpAdkEFkVJKYrVDfaLbhaDpX1ihf...
0
bitcoin/src/test
bitcoin/src/test/data/blockfilters.json
[ ["Block Height,Block Hash,Block,[Prev Output Scripts for Block],Previous Basic Header,Basic Filter,Basic Header,Notes"], [0,"000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943","0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8...
0
bitcoin/src/test
bitcoin/src/test/data/bip341_wallet_vectors.json
{ "version": 1, "scriptPubKey": [ { "given": { "internalPubkey": "d6889cb081036e0faefa3a35157ad71086b123b2b144b649798b494c300a961d", "scriptTree": null }, "intermediary": { "merkleRoot": null, "tweak": "b...
0
bitcoin/src/test
bitcoin/src/test/data/tx_valid.json
[ ["The following are deserialized transactions which are valid."], ["They are in the form"], ["[[[prevout hash, prevout index, prevout scriptPubKey, amount?], [input 2], ...],"], ["serializedTransaction, excluded verifyFlags]"], ["Objects that are only a single string (like this one) are ignored"], ["The following is...
0
bitcoin/src/test
bitcoin/src/test/data/README.md
Description ------------ This directory contains data-driven tests for various aspects of Bitcoin. License -------- The data files in this directory are distributed under the MIT software license, see the accompanying file COPYING or https://www.opensource.org/licenses/mit-license.php.
0
bitcoin/src/test
bitcoin/src/test/data/key_io_valid.json
[ [ "1FsSia9rv4NeEwvJ2GvXrX7LyxYspbN2mo", "76a914a31c06bd463e3923bc1aadbde48b16976c08071788ac", { "chain": "main", "isPrivkey": false } ], [ "36j4NfKv6Akva9amjWrLG6MuSQym1GuEmm", "a914373b819a068f32b7a6b38b6b38729647cfde01c287", ...
0
bitcoin/src/test
bitcoin/src/test/data/sighash.json
[ ["raw_transaction, script, input_index, hashType, signature_hash (result)"], ["907c2bc503ade11cc3b04eb2918b6f547b0630ab569273824748c87ea14b0696526c66ba740200000004ab65ababfd1f9bdd4ef073c7afc4ae00da8a66f429c917a0081ad1e1dabce28d373eab81d8628de802000000096aab5253ab52000052ad042b5f25efb33beec9f3364e8a9139e8439d9d7e265...
0
bitcoin/src/test
bitcoin/src/test/data/base58_encode_decode.json
[ ["", ""], ["61", "2g"], ["626262", "a3gV"], ["636363", "aPEr"], ["73696d706c792061206c6f6e6720737472696e67", "2cFupjhnEsSn59qHXstmK2ffpLv2"], ["00eb15231dfceb60925886b67d065299925915aeb172c06647", "1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L"], ["516b6fcd0f", "ABnLTmg"], ["bf4f89001e670274dd", "3SEo3LWLoPntC"], ["572e4794", "...
0
bitcoin/src/test
bitcoin/src/test/data/tx_invalid.json
[ ["The following are deserialized transactions which are invalid."], ["They are in the form"], ["[[[prevout hash, prevout index, prevout scriptPubKey, amount?], [input 2], ...],"], ["serializedTransaction, verifyFlags]"], ["Use BADTX for verifyFlags if it is expected to fail CheckTransaction()"], ["Objects that are on...
0
bitcoin/src/test
bitcoin/src/test/data/script_tests.json
[ ["Format is: [[wit..., amount]?, scriptSig, scriptPubKey, flags, expected_scripterror, ... comments]"], ["It is evaluated as if there was a crediting coinbase transaction with two 0"], ["pushes as scriptSig, and one output of 0 satoshi and given scriptPubKey,"], ["followed by a spending transaction which spends this ...
0
bitcoin/src
bitcoin/src/util/sock.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_UTIL_SOCK_H #define BITCOIN_UTIL_SOCK_H #include <compat/compat.h> #include <util/threadinterrupt.h> #includ...
0
bitcoin/src
bitcoin/src/util/time.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // 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. #ifndef BITCOIN_UTIL_TIME_H #define BITCOIN_UTIL_TIME_H #include <chrono> // IWY...
0
bitcoin/src
bitcoin/src/util/bip32.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 <tinyformat.h> #include <util/bip32.h> #include <util/strencodings.h> #include <cstdint> #include <cstdio> #include...
0
bitcoin/src
bitcoin/src/util/tokenpipe.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_UTIL_TOKENPIPE_H #define BITCOIN_UTIL_TOKENPIPE_H #ifndef WIN32 #include <cstdint> #include <optional> /** One ...
0
bitcoin/src
bitcoin/src/util/error.h
// Copyright (c) 2010-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_UTIL_ERROR_H #define BITCOIN_UTIL_ERROR_H /** * util/error.h is a common place for definitions of simple er...
0
bitcoin/src
bitcoin/src/util/threadnames.h
// Copyright (c) 2018-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_UTIL_THREADNAMES_H #define BITCOIN_UTIL_THREADNAMES_H #include <string> namespace util { //! Rename a threa...
0
bitcoin/src
bitcoin/src/util/bitdeque.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_UTIL_BITDEQUE_H #define BITCOIN_UTIL_BITDEQUE_H #include <bitset> #include <cstddef> #include <deque> #include <l...
0
bitcoin/src
bitcoin/src/util/signalinterrupt.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_UTIL_SIGNALINTERRUPT_H #define BITCOIN_UTIL_SIGNALINTERRUPT_H #ifdef WIN32 #include <condition_variable> #include...
0
bitcoin/src
bitcoin/src/util/epochguard.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // 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. #ifndef BITCOIN_UTIL_EPOCHGUARD_H #define BITCOIN_UTIL_EPOCHGUARD_H #include <th...
0
bitcoin/src
bitcoin/src/util/chaintype.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 <util/chaintype.h> #include <cassert> #include <optional> #include <string> std::string ChainTypeToString(ChainType cha...
0
bitcoin/src
bitcoin/src/util/asmap.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_UTIL_ASMAP_H #define BITCOIN_UTIL_ASMAP_H #include <util/fs.h> #include <cstdint> #include <vector> uint32...
0
bitcoin/src
bitcoin/src/util/chaintype.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_UTIL_CHAINTYPE_H #define BITCOIN_UTIL_CHAINTYPE_H #include <optional> #include <string> enum class ChainType { ...
0
bitcoin/src
bitcoin/src/util/thread.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 <util/thread.h> #include <logging.h> #include <util/exception.h> #include <util/threadnames.h> #include <exception...
0
bitcoin/src
bitcoin/src/util/fs_helpers.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 <util/fs_helpers.h> #if defined(HAVE_CONFIG_H) #include <config/bitcoin...
0
bitcoin/src
bitcoin/src/util/fastrange.h
// Copyright (c) 2018-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_UTIL_FASTRANGE_H #define BITCOIN_UTIL_FASTRANGE_H #include <cstdint> /* This file offers implementations of...
0
bitcoin/src
bitcoin/src/util/tokenpipe.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 <util/tokenpipe.h> #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #ifndef WIN32 #include <er...
0
bitcoin/src
bitcoin/src/util/threadinterrupt.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // 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 <util/threadinterrupt.h> #include <sync.h> CThreadInterrupt::CThreadIn...
0
bitcoin/src
bitcoin/src/util/readwritefile.cpp
// Copyright (c) 2015-2022 The Bitcoin Core developers // Copyright (c) 2017 The Zcash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/readwritefile.h> #include <util/fs.h> #include <algorithm> #inclu...
0
bitcoin/src
bitcoin/src/util/spanparsing.cpp
// Copyright (c) 2018-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/spanparsing.h> #include <span.h> #include <algorithm> #include <cstddef> #include <string> namespace spanpa...
0
bitcoin/src
bitcoin/src/util/hasher.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 <crypto/siphash.h> #include <random.h> #include <span.h> #include <util/hasher.h> SaltedTxidHasher::SaltedTxidHashe...
0
bitcoin/src
bitcoin/src/util/sock.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 <common/system.h> #include <compat/compat.h> #include <logging.h> #include <tinyformat.h> #include <util/sock.h> #in...
0