Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
merkleblock.cpp
Go to the documentation of this file.
1// Copyright (c) 2020-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#include <merkleblock.h>
7#include <test/fuzz/fuzz.h>
8#include <test/fuzz/util.h>
9#include <uint256.h>
10
11#include <cstdint>
12#include <optional>
13#include <string>
14#include <vector>
15
BloomFilter is a probabilistic filter which SPV clients provide so that we can filter the transaction...
Definition bloom.h:45
Used to relay blocks as header + vector<merkle branch> to filtered nodes.
CPartialMerkleTree txn
Data structure that represents a partial merkle tree.
Definition merkleblock.h:57
unsigned int GetNumTransactions() const
Get number of transactions the merkle proof is indicating for cross-reference with local blockchain k...
static transaction_identifier FromUint256(const uint256 &id)
#define FUZZ_TARGET(...)
Definition fuzz.h:35
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
Definition fuzz.h:22
static constexpr TransactionSerParams TX_WITH_WITNESS
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
Definition util.h:167
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)
Definition util.h:35
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:73
FuzzedDataProvider & fuzzed_data_provider
Definition fees.cpp:38