mn fix
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user