lib/bitcoin/script.rb
# Marks transaction as invalid if top stack value is not true. True is removed, but false is not.
Marks transaction as invalid if top stack value is not true. True is removed, but false is not.
Marks transaction as invalid if top stack value is not true . True is removed but false is not .
def op_verify
    res = pop_int
    if cast_to_bool(res) == false
      @stack << res
      @script_invalid = true 
    else
      @script_invalid = false
    end
  end
def op_verify res = pop_int if cast_to_bool ( res ) == false @stack << res @script_invalid = true else @script_invalid = false end end
Marks transaction as invalid if top stack value is not true.
Marks transaction as invalid if top stack value is not true .
# raise 'transaction invalid' ?