|
@ -27,10 +27,10 @@ printf "salt: %s\n",$salt; |
|
|
|
|
|
|
|
|
my $headhash = $toychain::HEADs[0]->{bkaddr}; |
|
|
my $headhash = $toychain::HEADs[0]->{bkaddr}; |
|
|
printf "genesis: %s\n",$headhash; |
|
|
printf "genesis: %s\n",$headhash; |
|
|
|
|
|
|
|
|
print "// testing getTxMeta\n"; |
|
|
print "// testing getTxMeta\n"; |
|
|
my $txblock = getTxMeta(); |
|
|
my $txblock = getTxMeta(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "// testing blockCreation\n"; |
|
|
print "// testing blockCreation\n"; |
|
|
# createBlock(seed,payload,txblock,comment) |
|
|
# createBlock(seed,payload,txblock,comment) |
|
|
my $block = &createBlock($seed,"This is the 2nd block payload",$txblock,'1st comment for new block'); |
|
|
my $block = &createBlock($seed,"This is the 2nd block payload",$txblock,'1st comment for new block'); |
|
@ -39,8 +39,8 @@ print "// testing insertBlock:\n"; |
|
|
my $chain = &insertBlock($toychain::HEADs[0],$block); |
|
|
my $chain = &insertBlock($toychain::HEADs[0],$block); |
|
|
|
|
|
|
|
|
createDot($toychain::chain); |
|
|
createDot($toychain::chain); |
|
|
|
|
|
|
|
|
displayChain($toychain::chain); |
|
|
displayChain($toychain::chain); |
|
|
|
|
|
saveChain($toychain::chain); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|