accounts-hash

This commit is contained in:
Arionum
2018-08-30 01:33:09 +03:00
parent 99f17a3e7d
commit a03484adee

View File

@@ -526,6 +526,13 @@ elseif ($cmd == 'get-address') {
$current=$block->current();
echo "Height:\t\t$current[height]\n";
echo "Hash:\t\t".md5(json_encode($res))."\n\n";
} elseif ($cmd=='accounts-hash') {
$res=$db->run("SELECT * FROM accounts ORDER by public_key ASC");
$block=new Block();
$current=$block->current();
echo "Height:\t\t$current[height]\n";
echo "Hash:\t\t".md5(json_encode($res))."\n\n";
} elseif ($cmd == "version") {
echo "\n\n".VERSION."\n\n";
} else {