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

Method receiveStack

src/main.cpp:7976–7991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7974}
7975
7976bool LuxTxConverter::receiveStack(const CScript& scriptPubKey){
7977 EvalScript(stack, scriptPubKey, SCRIPT_EXEC_BYTE_CODE, BaseSignatureChecker(), SIGVERSION_BASE, nullptr);
7978 if (stack.empty())
7979 return false;
7980
7981 CScript scriptRest(stack.back().begin(), stack.back().end());
7982 stack.pop_back();
7983
7984 opcode = (opcodetype)(*scriptRest.begin());
7985 if((opcode == OP_CREATE && stack.size() < 4) || (opcode == OP_CALL && stack.size() < 5)){
7986 stack.clear();
7987 return false;
7988 }
7989
7990 return true;
7991}
7992
7993bool LuxTxConverter::parseEthTXParams(EthTransactionParams& params){
7994 try{

Callers

nothing calls this directly

Calls 9

EvalScriptFunction · 0.85
backMethod · 0.80
pop_backMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected