Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
2af3689984
  1. 2
      iguana/coins/genbtc.json
  2. 1
      iguana/genbtcloop
  3. 1
      iguana/genbtcloop8
  4. 4
      iguana/iguana_tx.c

2
iguana/coins/genbtc.json

@ -1 +1 @@
{"numhelpers":1,"prefetchlag":-1,"poll":1,"active":1,"agent":"iguana","method":"addcoin","newcoin":"BTC","startpend":16,"endpend":16,"services":129,"maxpeers":512,"RELAY":1,"VALIDATE":1,"portp2p":8333} {"numhelpers":4,"prefetchlag":-1,"poll":1,"active":1,"agent":"iguana","method":"addcoin","newcoin":"BTC","startpend":16,"endpend":16,"services":129,"maxpeers":512,"RELAY":1,"VALIDATE":1,"portp2p":8333}

1
iguana/genbtcloop

@ -2,5 +2,6 @@ while true
do do
../agents/iguana coins/genbtc.json ../agents/iguana coins/genbtc.json
sleep 3 sleep 3
rm -rf tmp
done done

1
iguana/genbtcloop8

@ -2,5 +2,6 @@ while true
do do
../agents/iguana coins/genbtc8.json ../agents/iguana coins/genbtc8.json
sleep 3 sleep 3
rm -rf tmp
done done

4
iguana/iguana_tx.c

@ -237,8 +237,8 @@ int32_t iguana_ramtxbytes(struct iguana_info *coin,uint8_t *serialized,int32_t m
*txidp = bits256_doublesha256(txidstr,serialized,len); *txidp = bits256_doublesha256(txidstr,serialized,len);
if ( memcmp(txidp,tx->txid.bytes,sizeof(*txidp)) != 0 ) if ( memcmp(txidp,tx->txid.bytes,sizeof(*txidp)) != 0 )
{ {
//for (i=0; i<len; i++) for (i=0; i<len; i++)
// printf("%02x",serialized[i]); printf("%02x",serialized[i]);
char str[65],str2[65]; printf("\nrw.%d numvins.%d numvouts.%d error generating txbytes txid %s vs %s\n",rwflag,numvins,numvouts,bits256_str(str,*txidp),bits256_str(str2,tx->txid)); char str[65],str2[65]; printf("\nrw.%d numvins.%d numvouts.%d error generating txbytes txid %s vs %s\n",rwflag,numvins,numvouts,bits256_str(str,*txidp),bits256_str(str2,tx->txid));
return(-1); return(-1);
} }

Loading…
Cancel
Save