diff --git a/include/transaction.inc.php b/include/transaction.inc.php index 1e4e25b..a3842c8 100755 --- a/include/transaction.inc.php +++ b/include/transaction.inc.php @@ -20,11 +20,14 @@ class Transaction ); } else { // other type of transactions - $db->run( + + if($x['version']!=100) { $db->run( "UPDATE accounts SET balance=balance-:val WHERE id=:id", [":id" => $x['dst'], ":val" => $x['val']] ); - } + } + + } // on version 0 / reward transaction, don't credit anyone if ($x['version'] > 0) { $db->run( diff --git a/util.php b/util.php index ef6f065..7834f84 100755 --- a/util.php +++ b/util.php @@ -447,6 +447,8 @@ elseif ($cmd == 'get-address') { } elseif ($cmd == 'clean-blacklist') { $db->run("UPDATE peers SET blacklisted=0, fails=0, stuckfail=0"); echo "All the peers have been removed from the blacklist\n"; + + } else { echo "Invalid command\n"; }