#!/usr/bin/perl # # Intent: # testing it ! # # Note: # This work has been done during my time at Doctor I·T # # -- Copyright drit, 2021 -- # BEGIN { if (-e $ENV{SITE}.'/lib') { use lib $ENV{SITE}.'/lib'; } } #use if -e $LIB, $LIB.'/seed'; use seed qw(rand64); use toychain qw(blockHash displayBlock); use YAML::Syck qw(Dump); print "// testing blockaddr\n"; printf "chain.addr: %s\n",$toychain::chain->{bkaddr}; # f96885aa : 21.4min # 044ce1de : 20.5min if (0) { &seed::setseed(0x21683774); my $n0 = rand64(); # n < 18446744073709551616 printf "n0:%s\n",$n0; } displayBlock($toychain::genesis); my $addr = &blockHash($toychain::genesis); printf "genesis.addr: %s\n",$addr; print ".\n"; exit $?; 1;