|
@ -430,7 +430,9 @@ uint32_t iguana_ramchain_addunspent20(struct iguana_info *coin,struct iguana_pee |
|
|
{ |
|
|
{ |
|
|
static uint64_t totalsize; |
|
|
static uint64_t totalsize; |
|
|
totalsize += scriptlen; |
|
|
totalsize += scriptlen; |
|
|
//char str[65]; fprintf(stderr,"type.%d scriptlen.%d bp.%p %s\n",type,scriptlen,bp,mbstr(str,totalsize));
|
|
|
char str[65]; |
|
|
|
|
|
if ( (rand() % 1000000) == 0 ) |
|
|
|
|
|
fprintf(stderr,"IGUANA_SCRIPT_76AC type.%d scriptlen.%d bp.%p %s\n",type,scriptlen,bp,mbstr(str,totalsize)); |
|
|
} |
|
|
} |
|
|
u->scriptlen = scriptlen; |
|
|
u->scriptlen = scriptlen; |
|
|
if ( scriptlen > 0 && script != 0 ) |
|
|
if ( scriptlen > 0 && script != 0 ) |
|
@ -2084,7 +2086,7 @@ struct iguana_ramchain *iguana_bundleload(struct iguana_info *coin,struct iguana |
|
|
if ( (mapchain= iguana_ramchain_map(coin,fname,bp,bp->n,ramchain,0,0,bp->hashes[0],zero,0,0,0,1)) != 0 ) |
|
|
if ( (mapchain= iguana_ramchain_map(coin,fname,bp,bp->n,ramchain,0,0,bp->hashes[0],zero,0,0,0,1)) != 0 ) |
|
|
{ |
|
|
{ |
|
|
iguana_ramchain_link(mapchain,bp->hashes[0],bp->hashes[bp->n-1],bp->hdrsi,bp->bundleheight,0,bp->n,firsti,1); |
|
|
iguana_ramchain_link(mapchain,bp->hashes[0],bp->hashes[bp->n-1],bp->hdrsi,bp->bundleheight,0,bp->n,firsti,1); |
|
|
char str[65]; printf("bp.%d: T.%d U.%d S.%d P%d X.%d MAPPED %s %p\n",bp->hdrsi,mapchain->H.data->numtxids,mapchain->H.data->numunspents,mapchain->H.data->numspends,mapchain->H.data->numpkinds,mapchain->H.data->numexternaltxids,mbstr(str,mapchain->H.data->allocsize),mapchain->H.data); |
|
|
//char str[65]; printf("bp.%d: T.%d U.%d S.%d P%d X.%d MAPPED %s %p\n",bp->hdrsi,mapchain->H.data->numtxids,mapchain->H.data->numunspents,mapchain->H.data->numspends,mapchain->H.data->numpkinds,mapchain->H.data->numexternaltxids,mbstr(str,mapchain->H.data->allocsize),mapchain->H.data);
|
|
|
//ramcoder_test(mapchain->H.data,mapchain->H.data->allocsize);
|
|
|
//ramcoder_test(mapchain->H.data,mapchain->H.data->allocsize);
|
|
|
B = (void *)(long)((long)mapchain->H.data + mapchain->H.data->Boffset); |
|
|
B = (void *)(long)((long)mapchain->H.data + mapchain->H.data->Boffset); |
|
|
T = (void *)(long)((long)mapchain->H.data + mapchain->H.data->Toffset); |
|
|
T = (void *)(long)((long)mapchain->H.data + mapchain->H.data->Toffset); |
|
|