MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DecodeHexTx

Function DecodeHexTx

src/core_io.cpp:225–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225bool DecodeHexTx(CMutableTransaction& tx, const std::string& hex_tx, bool try_no_witness, bool try_witness)
226{
227 if (!IsHex(hex_tx)) {
228 return false;
229 }
230
231 std::vector<unsigned char> txData(ParseHex(hex_tx));
232 return DecodeTx(tx, txData, try_no_witness, try_witness);
233}
234
235bool DecodeHexBlockHeader(CBlockHeader& header, const std::string& hex_header)
236{

Callers 15

CommandLineRawTxFunction · 0.85
importprunedfundsFunction · 0.85
fundrawtransactionFunction · 0.85
simulaterawtransactionFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGETFunction · 0.85
generateblockFunction · 0.85
sendrawtransactionFunction · 0.85
testmempoolacceptFunction · 0.85
submitpackageFunction · 0.85
decoderawtransactionFunction · 0.85

Calls 3

IsHexFunction · 0.85
ParseHexFunction · 0.85
DecodeTxFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68