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.

25 lines
589 B

  1. #
  2. BEGIN { if (-e $ENV{SITE}.'/lib') { use lib $ENV{SITE}.'/lib'; } }
  3. use TXPOOL qw(isTxValid);
  4. use misc qw(kwdigest);
  5. use YAML::Syck qw(LoadFile Dump);
  6. #printf "--- keys %s...\n",Dump($ECKeys::keys);
  7. printf "--- nicknames %s...\n",Dump($ECKeys::nicknames);
  8. $UTXO->{$ECKeys::keys->{verification}{public}} = $config->{coinbase}{reward};
  9. printf "--- UTXO %s...\n",Dump($UTXO);
  10. my $tx = LoadFile($ENV{SITE}.'/templ/txcb01.yml');
  11. my $txkw = &kwdigest($tx);
  12. printf "--- tx (%s) %s...\n",$txkw,Dump($tx);
  13. my $txok = &isTxValid($tx);
  14. printf "is %s valid: ? %s\n",$txkw,$txok;
  15. exit $?;
  16. 1;