This commit is contained in:
Arionum
2018-08-10 21:49:34 +03:00
parent 07dcebd895
commit fbc48921f3
2 changed files with 7 additions and 2 deletions

View File

@@ -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(

View File

@@ -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";
}