Update checkpoint script

This commit is contained in:
Duke Leto
2019-12-08 14:01:33 -05:00
parent 95e0749bd0
commit bcc95bea7c

View File

@@ -1,4 +1,6 @@
#!/usr/bin/perl
# Copyright 2019 The Hush developers
# Released under the GPLv3
use warnings;
use strict;
# Generate checkpoint data for use in src/main.cpp
@@ -12,8 +14,11 @@ my $count = 0;
my $blocks = qx{$hush getblockcount};
my $prev = $blocks - $perday;
my $last = 0;
my $now = time();
chomp($blocks);
print "// Generated at $now via hush3 contrib/checkpoints.pl by Duke Leto\n";
while (1) {
$count++;
my $block = $stride*$count;