Oops, I deleted the `done` variable in the migration and forgot to put
it back, and then I didn't notice that I never passed through the
`confirmations` method to the electrum transaction, because it's used in
the bin logic, but none of the tested logic.
And since I'm now delegating two methods, I may as well use a real
delegator. I thought about it with the first one, but it seemed about 6
in one, half dozen in the other, but with two it starts swinging in the
direction of Forwardable for me.
@@ -230,7 +230,7 @@ repo.error_handler do |e|
end
end
-repo.map do |pending, customer_id|
+done = repo.map { |pending, customer_id|
next unless pending.confirmations >= CONFIG[:required_confirmations]
if pending.outgoing?
@@ -251,6 +251,6 @@ repo.map do |pending, customer_id|
warn "No plan for #{customer_id} cannot save #{pending.txid}"
end
end
-end
+}
puts done.join("\n")