lib/bitcoin/protocol/tx.rb
# output transaction in raw binary format
output transaction in raw binary format
output transaction in raw binary format
def to_payload
        pin = ""
        @in.each{|input| pin << input.to_payload }
        pout = ""
        @out.each{|output| pout << output.to_payload }
        [@ver].pack("V") << Protocol.pack_var_int(@in.size) << pin << Protocol.pack_var_int(@out.size) << pout << [@lock_time].pack("V")
      end
def to_payload pin = "" @in . each { | input | pin << input . to_payload } pout = "" @out . each { | output | pout << output . to_payload } [ @ver ] . pack ( "V" ) << Protocol . pack_var_int ( @in . size ) << pin << Protocol . pack_var_int ( @out . size ) << pout << [ @lock_time ] . pack ( "V" ) end
output transaction in raw binary format
output transaction in raw binary format