From 673a9b97f7fb10e6a0f242cfff1857815d6367c8 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 14 Jul 2021 09:05:32 -0500 Subject: [PATCH] Do not warn about BTC tx <= 0 This is a valid case for when we have sent BTC received at this address out. --- bin/process_pending_btc_transactions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/process_pending_btc_transactions b/bin/process_pending_btc_transactions index a4450bf..e16b3fe 100755 --- a/bin/process_pending_btc_transactions +++ b/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 -- 2.38.5