Skip to content
Snippets Groups Projects
Commit 3aabd8b8 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Initial sleep allowing postgres time to start

parent 080f9b3e
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ sub getTransByHash
'eth_getTransactionByHash',
$hash
);
die "Invalid object received:\n".Dumper($json) if not exists $json->{'number'};
die "Invalid object received when asking for $hash:\n".Dumper($json) if not exists $json->{'blockNumber'};
my $max = 0;
my $rcpt = undef;
do {
......@@ -305,8 +305,10 @@ sub allsnaps
sub main
{
$| = 1;
$sql = sql->new();
versioncheck();
# Give Postgres time to start up.
sleep(3);
$sql = sql->new();
info "Looking for orphaned blocks in the "
. "database.\n";
push @blockqueue, $sql->listOrphans();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment