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

Function IsOpSuccess

src/script/script.cpp:365–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365bool IsOpSuccess(const opcodetype& opcode)
366{
367 return opcode == 80 || opcode == 98 || (opcode >= 126 && opcode <= 129) ||
368 (opcode >= 131 && opcode <= 134) || (opcode >= 137 && opcode <= 138) ||
369 (opcode >= 141 && opcode <= 142) || (opcode >= 149 && opcode <= 153) ||
370 (opcode >= 187 && opcode <= 254);
371}
372
373bool CheckMinimalPush(const std::vector<unsigned char>& data, opcodetype opcode) {
374 // Excludes OP_1NEGATE, OP_1-16 since they are by definition minimal

Callers 2

ExecuteWitnessScriptFunction · 0.85
decodescriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected