Bitcoin Core  0.20.99
P2P Digital Currency
Functions
core_read.cpp File Reference
#include <core_io.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <script/sign.h>
#include <serialize.h>
#include <streams.h>
#include <univalue.h>
#include <util/strencodings.h>
#include <version.h>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp>
#include <algorithm>
#include <string>
Include dependency graph for core_read.cpp:

Go to the source code of this file.

Functions

CScript ParseScript (const std::string &s)
 
static bool CheckTxScriptsSanity (const CMutableTransaction &tx)
 
static bool DecodeTx (CMutableTransaction &tx, const std::vector< unsigned char > &tx_data, bool try_no_witness, bool try_witness)
 
bool DecodeHexTx (CMutableTransaction &tx, const std::string &hex_tx, bool try_no_witness, bool try_witness)
 
bool DecodeHexBlockHeader (CBlockHeader &header, const std::string &hex_header)
 
bool DecodeHexBlk (CBlock &block, const std::string &strHexBlk)
 
bool ParseHashStr (const std::string &strHex, uint256 &result)
 Parse a hex string into 256 bits. More...
 
std::vector< unsigned char > ParseHexUV (const UniValue &v, const std::string &strName)
 
int ParseSighashString (const UniValue &sighash)
 

Function Documentation

◆ CheckTxScriptsSanity()

static bool CheckTxScriptsSanity ( const CMutableTransaction tx)
static

Definition at line 100 of file core_read.cpp.

Here is the caller graph for this function:

◆ DecodeHexBlk()

bool DecodeHexBlk ( CBlock block,
const std::string &  strHexBlk 
)

Definition at line 174 of file core_read.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecodeHexBlockHeader()

bool DecodeHexBlockHeader ( CBlockHeader header,
const std::string &  hex_header 
)

Definition at line 160 of file core_read.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecodeHexTx()

bool DecodeHexTx ( CMutableTransaction tx,
const std::string &  hex_tx,
bool  try_no_witness,
bool  try_witness 
)

Definition at line 150 of file core_read.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecodeTx()

static bool DecodeTx ( CMutableTransaction tx,
const std::vector< unsigned char > &  tx_data,
bool  try_no_witness,
bool  try_witness 
)
static

Definition at line 120 of file core_read.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseHashStr()

bool ParseHashStr ( const std::string &  strHex,
uint256 result 
)

Parse a hex string into 256 bits.

Parameters
[in]strHexa hex-formatted, 64-character string
[out]resultthe result of the parasing
Returns
true if successful, false if not
See also
ParseHashV for an RPC-oriented version of this

Definition at line 191 of file core_read.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseHexUV()

std::vector<unsigned char> ParseHexUV ( const UniValue v,
const std::string &  strName 
)

Definition at line 200 of file core_read.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseScript()

CScript ParseScript ( const std::string &  s)

Definition at line 24 of file core_read.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseSighashString()

int ParseSighashString ( const UniValue sighash)

Definition at line 210 of file core_read.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: