MCPcopy Create free account
hub / github.com/ElementsProject/elements / DecodeHexTx

Function DecodeHexTx

src/core_read.cpp:199–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199bool DecodeHexTx(CMutableTransaction& tx, const std::string& hex_tx, bool try_no_witness, bool try_witness)
200{
201 if (!IsHex(hex_tx)) {
202 return false;
203 }
204
205 std::vector<unsigned char> txData(ParseHex(hex_tx));
206 return DecodeTx(tx, txData, try_no_witness, try_witness);
207}
208
209bool DecodeHexBlockHeader(CBlockHeader& header, const std::string& hex_header)
210{

Callers 15

CommandLineRawTxFunction · 0.85
importprunedfundsFunction · 0.85
fundrawtransactionFunction · 0.85
claimpeginFunction · 0.85
unblindrawtransactionFunction · 0.85
FUZZ_TARGETFunction · 0.85
generateblockFunction · 0.85
decoderawtransactionFunction · 0.85
combinerawtransactionFunction · 0.85
sendrawtransactionFunction · 0.85

Calls 3

IsHexFunction · 0.85
ParseHexFunction · 0.85
DecodeTxFunction · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.68