More error detection

This commit is contained in:
Duke Leto
2020-06-13 09:24:58 -04:00
parent 96c50683e9
commit f7a9db724a

View File

@@ -9,6 +9,11 @@ my $block = shift || die "Usage: $0 123";
my $hush = "./src/hush-cli";
my $blockcount = qx{$hush getblockcount};
unless ($blockcount = int($blockcount)) {
print "Invalid response from hush-cli\n";
exit 1;
}
if ($block <= $blockcount) {
die "That block has already happened!";
} else {