lib/bitcoin/builder.rb in bitcoin-ruby-0.0.4 vs lib/bitcoin/builder.rb in bitcoin-ruby-0.0.5
- old
+ new
@@ -207,11 +207,11 @@
def initialize
@txin = P::TxIn.new
end
# previous transaction that contains the output we want to use.
- def prev_out tx
- @prev_out = tx
+ def prev_out tx, idx = nil
+ @prev_out, @prev_out_index = tx, idx
end
# index of the output in the #prev_out transaction.
def prev_out_index i
@prev_out_index = i