Skip to main content
deleted 162 characters in body; added 1 character in body
Source Link
morsecoder
  • 14.2k
  • 2
  • 44
  • 94

If the execution of OP_EQUAL gives true, then it does not leave true/false on the stack. If it is false then it leaves false on top of the stack and stops executing.

                stackBstack.push_back(fEqual ? vchTrue : vchFalse);
                if (opcode == OP_EQUALVERIFY)
                {
                    if (fEqual)
                        popstack(stack);
                    else
                        return set_error(serror, SCRIPT_ERR_EQUALVERIFY);
                }
            }

Source

If the execution of OP_EQUAL gives true, then it does not leave true/false on the stack. If it is false then it leaves false on top of the stack and stops executing.

                stack.push_back(fEqual ? vchTrue : vchFalse);
                if (opcode == OP_EQUALVERIFY)
                {
                    if (fEqual)
                        popstack(stack);
                    else
                        return set_error(serror, SCRIPT_ERR_EQUALVERIFY);
                }
            }

Source

If the execution of OP_EQUAL gives true, then it does not leave true/false on the stack. If it is false then it leaves false on top of the stack and stops executing.

Bstack.push_back(fEqual ? vchTrue : vchFalse);
if (opcode == OP_EQUALVERIFY)
{
if (fEqual)
    popstack(stack);
else
    return set_error(serror, SCRIPT_ERR_EQUALVERIFY);
}

Source

Source Link
morsecoder
  • 14.2k
  • 2
  • 44
  • 94

If the execution of OP_EQUAL gives true, then it does not leave true/false on the stack. If it is false then it leaves false on top of the stack and stops executing.

                stack.push_back(fEqual ? vchTrue : vchFalse);
                if (opcode == OP_EQUALVERIFY)
                {
                    if (fEqual)
                        popstack(stack);
                    else
                        return set_error(serror, SCRIPT_ERR_EQUALVERIFY);
                }
            }

Source