lib/bitcoin/script.rb
# Returns a script that deleted the script before the index specified by separator_index.
Returns a script that deleted the script before the index specified by separator_index.
Returns a script that deleted the script before the index specified by separator_index .
def subscript_codeseparator(separator_index)
    buf = []
    process_separator_index = 0
    (chunks || @chunks).each{|chunk|
      buf << chunk if process_separator_index == separator_index
      process_separator_index += 1 if chunk == OP_CODESEPARATOR and process_separator_index < separator_index
    }
    to_binary(buf)
  end
def subscript_codeseparator ( separator_index ) buf = [ ] process_separator_index = 0 ( chunks || @chunks ) . each { | chunk | buf << chunk if process_separator_index == separator_index process_separator_index += 1 if chunk == OP_CODESEPARATOR and process_separator_index < separator_index } to_binary ( buf ) end
Returns a script that deleted the script before the index specified by separator_index.
Returns a script that deleted the script before the index specified by separator_index .
separator_index
<not_specific>