Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0f9dc87267
  1. 2
      iguana/iguana_realtime.c
  2. 2
      iguana/iguana_sign.c
  3. 2
      iguana/tests/validaterawtransaction

2
iguana/iguana_realtime.c

@ -306,7 +306,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
{
printf("cant find bundleblock [%d:%d]\n",bp->hdrsi,bundlei);
iguana_blockQ("RTmissing",coin,bp,bundlei,hash2,1);
break;
//break;
}
if ( coin->RTdatabad == 0 && block != 0 && (block->height == 0 || bits256_nonz(block->RO.prev_block) != 0) )
{

2
iguana/iguana_sign.c

@ -514,7 +514,7 @@ bits256 iguana_parsetxobj(struct supernet_info *myinfo,struct iguana_info *coin,
msg->lock_time = jint(txobj,"locktime");
msg->txid = jbits256(txobj,"txid");
*txstartp = len;
if ( (msg->allocsize= iguana_rwmsgtx(coin,1,0,&serialized[len],maxsize-len,msg,&txid,vpnstr,0,0,0,V->suppress_pubkeys)) < 0 )
if ( (msg->allocsize= iguana_rwmsgtx(coin,1,0,&serialized[len],maxsize-len,msg,&txid,vpnstr,0,0,0,V!=0?V->suppress_pubkeys:0)) < 0 )
{
memset(txid.bytes,0,sizeof(txid));
printf("error parsing txobj\n");

2
iguana/tests/validaterawtransaction

@ -1 +1 @@
curl --url "http://127.0.0.1:7778" --data "{\"method\":\"validaterawtransaction\",\"params\":[\"01000000ddd7325701272cab4a805aa14aa5c73ebd44abb4a6819fdc7218ee26340c0ebd70ecd77efc010000006b483045022100bc7b4fc4ec5d9a01778c751996642fe49665fdb03aea0aa99b9bb56ce57b5e7e022051ec6437f0174a58eeacc249e7c2b7f82eac4f79888f226d2f1dadf94455a0cb012102d884bfbe1703cb3e3fb2d560c6c69155875a43e0d5f640c75a7b6c8bd17b99e5ffffffff02a0860100000000001976a9142ef2840b34e90449eb9abda6d6162d40d704639788ac90bb911d000000001976a914dcc39f9cfc5558b09fc7862535cafc98e5a4d63088ac00000000\"]}"
curl --url "http://127.0.0.1:7778" --data "{\"coin\":\"BTC\",\"method\":\"validaterawtransaction\",\"params\":[\"0100000001d330b1a60b68272d1249a178605ef699e26772a642a68d2e0558a7a558dc420100000000b4483045022100c4de2343865be62552137fc594a5acbe8db036aa7fc811ed7819966f6b30a0400220522776e79aff3ec77947837c03c2a6a11a1c1953f551fc0b6e87350a10c86b6601514c676304b762a657b1752102a9669e63ef1ab04913615c2f3887ea3584f81e5f08feee9535b19ab3739d8afdac67a91418a616c8617d1bbae6369e5d41c2cd1e5d4c0f9c88210398a4cb9f6ea7c52a4e27455028a95e2e4e397a110fb75f072c2c58a8bdcbf4baac685100000000000001d441\"]}"

Loading…
Cancel
Save