Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
959db772ef
  1. 2
      iguana/iguana_msg.c
  2. 4
      iguana/iguana_ramchain.c
  3. 2
      includes/iguana_apideclares.h

2
iguana/iguana_msg.c

@ -445,7 +445,7 @@ int32_t iguana_gentxarray(struct iguana_info *coin,struct OS_memspace *mem,struc
{ {
if ( (n= iguana_rwtx(0,mem,&data[len],&tx[i],recvlen - len,&tx[i].txid,coin->chain->hastimestamp,strcmp(coin->symbol,"VPN")==0)) < 0 ) if ( (n= iguana_rwtx(0,mem,&data[len],&tx[i],recvlen - len,&tx[i].txid,coin->chain->hastimestamp,strcmp(coin->symbol,"VPN")==0)) < 0 )
break; break;
if ( 1 && bits256_cmp(tx[i].txid,bits256_conv("091c99b7b7f9b83ad2385c45b342ed5dd57035d15ff812262a3ceb3f1b291a5a")) == 0 ) if ( 0 && bits256_cmp(tx[i].txid,bits256_conv("091c99b7b7f9b83ad2385c45b342ed5dd57035d15ff812262a3ceb3f1b291a5a")) == 0 )
{ {
int32_t j; for (j=0; len+j<recvlen&&j<256; j++) int32_t j; for (j=0; len+j<recvlen&&j<256; j++)
printf("%02x",data[len+j]); printf("%02x",data[len+j]);

4
iguana/iguana_ramchain.c

@ -355,11 +355,11 @@ uint32_t iguana_ramchain_addunspent(struct iguana_info *coin,RAMCHAIN_FUNC,uint6
for (i=0; i<20; i++) for (i=0; i<20; i++)
if ( rmd160[i] != 0 ) if ( rmd160[i] != 0 )
break; break;
if ( i == 20 && vout > 0 ) /*if ( i == 20 && vout > 0 )
{ {
printf("iguana_ramchain_addunspent: null rmd160 warning txi.%d vout.%d\n",txi,vout); printf("iguana_ramchain_addunspent: null rmd160 warning txi.%d vout.%d\n",txi,vout);
//return(0); //return(0);
} }*/
unspentind = ramchain->H.unspentind++; unspentind = ramchain->H.unspentind++;
u = &Ux[unspentind]; u = &Ux[unspentind];
if ( (ptr= iguana_hashfind(ramchain,'P',rmd160)) == 0 ) if ( (ptr= iguana_hashfind(ramchain,'P',rmd160)) == 0 )

2
includes/iguana_apideclares.h

@ -30,7 +30,7 @@ TWO_ARRAYS(bitcoinrpc,createrawtransaction,vins,vouts); //
STRING_AND_TWOARRAYS(bitcoinrpc,signrawtransaction,rawtx,vins,privkeys); // STRING_AND_TWOARRAYS(bitcoinrpc,signrawtransaction,rawtx,vins,privkeys); //
STRING_AND_INT(bitcoinrpc,sendrawtransaction,rawtx,allowhighfees); // STRING_AND_INT(bitcoinrpc,sendrawtransaction,rawtx,allowhighfees); //
HASH_AND_TWOINTS(bitcoinrpc,gettxout,txid,vout,mempool); // HASH_AND_TWOINTS(bitcoinrpc,gettxout,txid,vout,mempool);
TWOINTS_AND_ARRAY(bitcoinrpc,listunspent,minconf,maxconf,array); TWOINTS_AND_ARRAY(bitcoinrpc,listunspent,minconf,maxconf,array);
HASH_AND_TWOINTS(bitcoinrpc,listsinceblock,blockhash,target,flag); // HASH_AND_TWOINTS(bitcoinrpc,listsinceblock,blockhash,target,flag); //

Loading…
Cancel
Save