Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
9ae51ed0aa
  1. 2
      iguana/exchanges/bitcoin.h
  2. 2
      iguana/iguana777.h
  3. 23
      iguana/iguana_recv.c

2
iguana/exchanges/bitcoin.h

@ -57,7 +57,7 @@
#define IGUANA_SCRIPT_DATA 11
#define IGUANA_SCRIPT_STRANGE 15
#define IGUANA_MAXSCRIPTSIZE 2048
#define IGUANA_MAXSCRIPTSIZE 8192
struct bp_key { EC_KEY *k; };

2
iguana/iguana777.h

@ -20,7 +20,7 @@
typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t len);
#define IGUANA_MAXSCRIPTSIZE 2048
#define IGUANA_MAXSCRIPTSIZE 8192
//#define IGUANA_DISABLEPEERS
#define IGUANA_MAXCOINS 64

23
iguana/iguana_recv.c

@ -471,19 +471,22 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
}
iguana_bundleQ(coin,bp,width);
}
else if ( bp->startutxo == 0 )
else if ( bp->emitfinish > coin->startutc )
{
if ( bp->hdrsi == 0 || coin->bundles[bp->hdrsi-1]->emitfinish != 0 )
if ( bp->startutxo == 0 )
{
bp->startutxo = (uint32_t)time(NULL);
printf("GENERATE UTXO, verify sigs, etc for ht.%d\n",bp->bundleheight);
if ( bp->hdrsi == 0 || coin->bundles[bp->hdrsi-1]->emitfinish != 0 )
{
bp->startutxo = (uint32_t)time(NULL);
printf("GENERATE UTXO, verify sigs, etc for ht.%d\n",bp->bundleheight);
}
iguana_bundleQ(coin,bp,width);
}
iguana_bundleQ(coin,bp,width);
}
else if ( bp->utxofinish == 0 )
{
printf("UTXO FINISHED ht.%d\n",bp->bundleheight);
}
else if ( bp->utxofinish == 0 )
{
printf("UTXO FINISHED ht.%d\n",bp->bundleheight);
}
} else iguana_bundleQ(coin,bp,width);
return(0);
}

Loading…
Cancel
Save