kbs1 background process fix

This commit is contained in:
Arionum
2018-02-18 21:16:11 +02:00
parent ec153dd099
commit 0170559fd5
5 changed files with 16 additions and 8 deletions

View File

@@ -140,6 +140,14 @@ echo "Mempool size: $res\n";
$res=$db->row("SELECT * FROM blocks WHERE id=:id OR height=:id2 LIMIT 1",array(":id"=>$id, ":id2"=>$id));
var_dump($res);
}elseif($cmd=="check-address"){
$dst=trim($argv[2]);
$acc=new Account;
if(!$acc->valid($dst)) die("Invalid address");
$dst_b=base58_decode($dst);
if(strlen($dst_b)!=64) die("Invalid address - ".strlen($dst_b)." bytes");
echo "The address is valid\n";
} else {
echo "Invalid command\n";