From a38bd92121488c4d5908709d9686dee33bb92dd1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 Mar 2016 19:44:01 -0300 Subject: [PATCH] test --- iguana/iguana_ramchain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 1d6ddce17..886c7bc76 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -2463,7 +2463,7 @@ if ( bp->bundleheight != 32000 ) //printf("%d ",numtxids); } scriptspace += pubkeyspace*1.1 + sigspace*1.1; - printf("mapchain txid tables, scriptspace.%u sigspace.%u pubkeyspace.%u\n",scriptspace,sigspace,pubkeyspace); + printf("mapchain txid tables, scriptspace.%u sigspace.%u pubkeyspace.%u bundlei.%d/%d\n",scriptspace,sigspace,pubkeyspace,bundlei,bp->n); if ( bundlei != bp->n ) { if ( (block= bp->blocks[bundlei]) != 0 ) @@ -2476,10 +2476,11 @@ if ( bp->bundleheight != 32000 ) printf("error mapping hdrsi.%d bundlei.%d\n",bp->hdrsi,bundlei); return(-1); } + dest = &bp->ramchain; printf("iguana_bundlesaveHT.%d -> total (%d %d %d) scriptspace.%d (pubkeys.%d sigs.%d) dest->txids %p\n",bp->bundleheight,numtxids,numunspents,numspends,scriptspace,pubkeyspace,sigspace,dest->txids); + dest->txids = dest->pkhashes = 0; numpkinds = numunspents; numexternaltxids = numspends; - dest = &bp->ramchain; //printf("E.%d depth.%d start bundle ramchain %d at %u started.%u lag.%d\n",coin->numemitted,depth,bp->bundleheight,now,starttime,now-starttime); depth++; if ( iguana_ramchain_alloc(coin,dest,mem,&HASHMEM,numtxids,numunspents,numspends,numpkinds,numexternaltxids,scriptspace+sigspace,bp->bundleheight,bp->n) < 0 )