MCPcopy Create free account
hub / github.com/LUX-Core/lux / ToString

Method ToString

src/script/script.cpp:386–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386std::string CScript::ToString() const
387{
388 std::string str;
389 opcodetype opcode;
390 std::vector<unsigned char> vch;
391 const_iterator pc = begin();
392 while (pc < end())
393 {
394 if (!str.empty())
395 str += " ";
396 if (!GetOp(pc, opcode, vch))
397 {
398 str += "[error]";
399 return str;
400 }
401 if (0 <= opcode && opcode <= OP_PUSHDATA4)
402 str += ValueString(vch);
403 else
404 str += GetOpName(opcode);
405 }
406 return str;
407}
408
409std::string CScriptWitness::ToString() const
410{

Callers 15

openDBMethod · 0.45
BlockChain.cppFile · 0.45
insertMethod · 0.45
importMethod · 0.45
DEV_WRITE_GUARDEDFunction · 0.45
WhisperDBMethod · 0.45
lookupMethod · 0.45
insertMethod · 0.45
killMethod · 0.45
loadAllMessagesMethod · 0.45
commitMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 7

beginFunction · 0.85
endFunction · 0.85
ValueStringFunction · 0.85
GetOpNameFunction · 0.85
HexStrFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by 6

BOOST_AUTO_TEST_CASEFunction · 0.36
RunTestFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
TestParseFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36