Do not warn about BTC tx <= 0

Stephen Paul Weber created

This is a valid case for when we have sent BTC received at this address out.

Change summary

bin/process_pending_btc_transactions | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

bin/process_pending_btc_transactions 🔗

@@ -247,7 +247,8 @@ done = REDIS.hgetall("pending_btc_transactions").map do |(txid, customer_id)|
 	next unless transaction.confirmations >= CONFIG[:required_confirmations]
 	btc = transaction.amount_for(address)
 	if btc <= 0
-		warn "Transaction shows as #{btc}, skipping #{txid}"
+		# This is a send, not a receive, do not record it
+		REDIS.hdel("pending_btc_transactions", txid)
 		next
 	end
 	DB.transaction do