DragonX has left the nest
This commit is contained in:
@@ -26,13 +26,9 @@ if ($block <= $blockcount) {
|
||||
die "That block has already happened!";
|
||||
} else {
|
||||
my $diff = $block - $blockcount;
|
||||
my $minpb = 1.25; # 75s in minutes for HUSH3
|
||||
if ($coin eq 'DRAGONX') {
|
||||
$minpb = 0.6; # minutes per block
|
||||
} elsif ($coin) {
|
||||
# TODO: support custom blocktimes
|
||||
$minpb = 1; # assumes default blocktime of 60s
|
||||
}
|
||||
# TODO: support custom blocktimes
|
||||
# assumes HACs use default blocktime of 60s
|
||||
my $minpb = $coin ? 1 : 1.25; # 75s in minutes for HUSH3
|
||||
my $minutes = $diff*$minpb;
|
||||
my $seconds = $minutes*60;
|
||||
my $now = time;
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
# call this script like this to generate checkpoints for a HAC such as DragonX:
|
||||
# CLI=./src/dragonx-cli ./contrib/sdl_checkpoints.pl ...
|
||||
# call this script like this to generate checkpoints for another chain:
|
||||
# CLI=./src/hac-cli ./contrib/sdl_checkpoints.pl ...
|
||||
|
||||
my $hush = $ENV{CLI} || "./src/hush-cli";
|
||||
my $gethash = "$hush getblockhash";
|
||||
|
||||
Reference in New Issue
Block a user