Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8ff7a430e5
  1. 5
      iguana/iguana_payments.c
  2. 4
      iguana/iguana_volatiles.c
  3. 2
      iguana/tests/decoderawtransactionB

5
iguana/iguana_payments.c

@ -392,9 +392,12 @@ char *iguana_calcrawtx(struct supernet_info *myinfo,struct iguana_info *coin,cJS
bitcoin_addr2rmd160(&addrtype,rmd160,changeaddr);
spendlen = bitcoin_standardspend(spendscript,0,rmd160);
bitcoin_txoutput(txobj,spendscript,spendlen,change);
int32_t i; for (i=0; i<oplen; i++)
printf("%02x",spendscript[i]);
printf(" changeaddr.%s\n",changeaddr);
if ( opreturn != 0 )
{
int32_t i; for (i=0; i<oplen; i++)
for (i=0; i<oplen; i++)
printf("%02x",opreturn[i]);
printf(" <- got opret\n");
bitcoin_txoutput(txobj,opreturn,oplen,burnamount);

4
iguana/iguana_volatiles.c

@ -154,7 +154,9 @@ int32_t iguana_spentflag(struct supernet_info *myinfo,struct iguana_info *coin,i
printf("iguana_spentflag found unspentind (%u %d) %s\n",spent_hdrsi,spent_unspentind,bits256_str(str,txid));
(*RTspendp) += RTspend;
return(-1);
} else printf("iguana_spentflag %s not in mempool\n",bits256_str(str,txid));
}
else if ( bits256_nonz(txid) != 0 )
printf("iguana_spentflag %s not in mempool\n",bits256_str(str,txid));
if ( utxo.spentflag != 0 && utxo.fromheight == 0 )
{
printf("illegal unspentind.%u vs %u hdrs.%d zero fromheight?\n",spent_unspentind,numunspents,spent_hdrsi);

2
iguana/tests/decoderawtransactionB

@ -1 +1 @@
curl --url "http://127.0.0.1:7778" --data "{\"coin\":\"BTCD\",\"method\":\"decoderawtransaction\",\"params\":[\"0100000052937e57018b8a679be9116f47d5c8748c2e81e62a532e9b9b08b7840341efaf937b29823d010000000100ffffffff02a0860100000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac908a773b000000001976a914c210f6711e98fe9971757ede2b2dcb0507f3f25e88ac00000000\"]}"
curl --url "http://127.0.0.1:7778" --data "{\"coin\":\"BTCD\",\"method\":\"decoderawtransaction\",\"params\":[\"01000000e37486570105cbd4d0058c3d7842966917456cbb4202ba90489abaa142dc093755b10a077d010000000100ffffffff0200e1f505000000004752210211a23a9bbbb43784b0b0198bab1cc6dbf2bab6cf3dd96a428ec6916267c80e70210372e08a8a353ba0190f513b3980d8229f4afecddbf014052199799875a924e56752ae50677235000000001976a914c210f6711e98fe9971757ede2b2dcb0507f3f25e88ac00000000\"]}"

Loading…
Cancel
Save