accounts-hash
This commit is contained in:
7
util.php
7
util.php
@@ -526,6 +526,13 @@ elseif ($cmd == 'get-address') {
|
|||||||
$current=$block->current();
|
$current=$block->current();
|
||||||
echo "Height:\t\t$current[height]\n";
|
echo "Height:\t\t$current[height]\n";
|
||||||
echo "Hash:\t\t".md5(json_encode($res))."\n\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") {
|
} elseif ($cmd == "version") {
|
||||||
echo "\n\n".VERSION."\n\n";
|
echo "\n\n".VERSION."\n\n";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user