mn fix
This commit is contained in:
@@ -20,11 +20,14 @@ class Transaction
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// other type of transactions
|
// other type of transactions
|
||||||
$db->run(
|
|
||||||
|
if($x['version']!=100) { $db->run(
|
||||||
"UPDATE accounts SET balance=balance-:val WHERE id=:id",
|
"UPDATE accounts SET balance=balance-:val WHERE id=:id",
|
||||||
[":id" => $x['dst'], ":val" => $x['val']]
|
[":id" => $x['dst'], ":val" => $x['val']]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
// on version 0 / reward transaction, don't credit anyone
|
// on version 0 / reward transaction, don't credit anyone
|
||||||
if ($x['version'] > 0) {
|
if ($x['version'] > 0) {
|
||||||
$db->run(
|
$db->run(
|
||||||
|
|||||||
2
util.php
2
util.php
@@ -447,6 +447,8 @@ elseif ($cmd == 'get-address') {
|
|||||||
} elseif ($cmd == 'clean-blacklist') {
|
} elseif ($cmd == 'clean-blacklist') {
|
||||||
$db->run("UPDATE peers SET blacklisted=0, fails=0, stuckfail=0");
|
$db->run("UPDATE peers SET blacklisted=0, fails=0, stuckfail=0");
|
||||||
echo "All the peers have been removed from the blacklist\n";
|
echo "All the peers have been removed from the blacklist\n";
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
echo "Invalid command\n";
|
echo "Invalid command\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user