Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
35de8aa8cb
  1. 1
      iguana/exchanges/bitcoin.h
  2. 2
      iguana/iguana_bundles.c
  3. 3
      iguana/iguana_scripts.c

1
iguana/exchanges/bitcoin.h

@ -56,6 +56,7 @@
#define IGUANA_SCRIPT_MSIG 10
#define IGUANA_SCRIPT_DATA 11
#define IGUANA_SCRIPT_AC 12
#define IGUANA_SCRIPT_1of1 13
#define IGUANA_SCRIPT_STRANGE 15
#define IGUANA_MAXSCRIPTSIZE 10001

2
iguana/iguana_bundles.c

@ -988,7 +988,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru
{
max = bp->n;
counter = iguana_bundleissuemissing(coin,bp,1,3.);
if ( counter > 0 )
if ( 0 && counter > 0 )
printf("ITER.rt%d now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",bp->isRT,(uint32_t)time(NULL),bp->numspec,bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit,counter,coin->MAXBUNDLES,coin->bundlescount);
} else bp->nexttime += 3;
if ( bp->balancefinish <= 1 )

3
iguana/iguana_scripts.c

@ -504,6 +504,7 @@ int32_t iguana_scriptgen(struct iguana_info *coin,int32_t *Mp,int32_t *nump,char
case IGUANA_SCRIPT_1of3: m = 1, n = 3; break;
case IGUANA_SCRIPT_2of2: m = 2, n = 2; break;
case IGUANA_SCRIPT_1of2: m = 1, n = 2; break;
case IGUANA_SCRIPT_1of1: m = 1, n = 1; break;
case IGUANA_SCRIPT_MSIG: m = vp->M, n = vp->N; break;
case IGUANA_SCRIPT_DATA:
if ( asmstr != 0 )
@ -651,6 +652,8 @@ int32_t _iguana_calcrmd160(struct iguana_info *coin,struct vin_info *vp)
else if ( m == 1 )
return(IGUANA_SCRIPT_1of2);
}
else if ( m == 1 && n == 1 )
return(IGUANA_SCRIPT_1of1);
//printf("strange msig M.%d of N.%d\n",m,n);
return(IGUANA_SCRIPT_MSIG);
}

Loading…
Cancel
Save