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(