Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
script_format.cpp
Go to the documentation of this file.
1// Copyright (c) 2019-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 <chainparams.h>
7#include <core_io.h>
8#include <policy/policy.h>
9#include <script/script.h>
11#include <test/fuzz/fuzz.h>
12#include <test/fuzz/util.h>
13#include <univalue.h>
14#include <util/chaintype.h>
15
20
void SelectParams(const ChainType chain)
Sets the params returned by Params() to those for the given chain type.
Serialized script, used inside transaction inputs and outputs.
Definition script.h:405
static const int WITNESS_SCALE_FACTOR
Definition consensus.h:21
std::string FormatScript(const CScript &script)
Definition core_io.cpp:298
void ScriptToUniv(const CScript &script, UniValue &out, bool include_hex, bool include_address, const SigningProvider *provider)
Definition core_io.cpp:409
std::string ScriptToAsmStr(const CScript &script, const bool fAttemptSighashDecode)
Create the assembly string representation of a CScript object.
Definition core_io.cpp:357
#define FUZZ_TARGET(...)
Definition fuzz.h:35
static constexpr int32_t MAX_STANDARD_TX_WEIGHT
The maximum weight for transactions we're willing to relay/mine.
Definition policy.h:37
void initialize_script_format()
CScript ConsumeScript(FuzzedDataProvider &fuzzed_data_provider, const bool maybe_p2wsh) noexcept
Definition util.cpp:98
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