From 385cac5608bab62a4c666a99fea7b38e8377751d Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 16 Jun 2017 00:01:44 +0100 Subject: [PATCH] more fixes --- src/Shell/BlockShell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shell/BlockShell.php b/src/Shell/BlockShell.php index c79b318..9c40fab 100644 --- a/src/Shell/BlockShell.php +++ b/src/Shell/BlockShell.php @@ -348,7 +348,7 @@ class BlockShell extends Shell { $total_tx_value = bcadd($total_tx_value, $out['Value'], 8); // check if the output exists - $stmt = $conn->execute('SELECT FROM Outputs WHERE TransactionId = ? AND Vout = ?', [$txid, $vout]); + $stmt = $conn->execute('SELECT Id FROM Outputs WHERE TransactionId = ? AND Vout = ?', [$txid, $vout]); $exist_output = $stmt->fetch(\PDO::FETCH_OBJ); if (!$exist_output) {