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