lib/sibit.rb in sibit-0.16.0 vs lib/sibit.rb in sibit-0.16.1
- old
+ new
@@ -108,10 +108,10 @@
p = price('USD')
satoshi = satoshi(amount)
builder = Bitcoin::Builder::TxBuilder.new
unspent = 0
size = 100
- utxos = first_one { |api| api.utxos(sources) }
+ utxos = first_one { |api| api.utxos(sources.keys) }
@log.info("#{utxos.count} UTXOs found, these will be used \
(value/confirmations at tx_hash):")
utxos.each do |utxo|
unspent += utxo[:value]
builder.input do |i|