more fixes

This commit is contained in:
Akinwale Ariwodola 2017-06-16 00:01:44 +01:00
parent 0760f3f340
commit 385cac5608

View file

@ -348,7 +348,7 @@ class BlockShell extends Shell {
$total_tx_value = bcadd($total_tx_value, $out['Value'], 8); $total_tx_value = bcadd($total_tx_value, $out['Value'], 8);
// check if the output exists // 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); $exist_output = $stmt->fetch(\PDO::FETCH_OBJ);
if (!$exist_output) { if (!$exist_output) {