You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
405 B

  1. #
  2. BEGIN { if (-e $ENV{SITE}.'/lib') { use lib $ENV{SITE}.'/lib'; } }
  3. use toychain;
  4. use DAG qw(DAGRead);
  5. my $headblock = $toychain::HEADs[0];
  6. my $headhash = $headblock->{bkhash};
  7. my $headaddr = $headblock->{bkaddr};
  8. printf "headhash: %s\n",$headhash;
  9. printf "headaddr: %s\n",$headaddr;
  10. my $blk = &DAGRead('blocks',$headhash);
  11. #printf "--- blk %s...\n",Dump($blk);
  12. &displayBlock($blk);
  13. exit $?;
  14. 1;