From 7910d26a5c20523c30532510414bca795c7830a8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 22 Apr 2016 02:52:45 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index e1184250c..f13aa3500 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1752,8 +1752,8 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi) numunspents = numpkinds = 0; if ( (bp= coin->bundles[hdrsi]) != 0 && bp->ramchain.H.data != 0 && (numpkinds= bp->ramchain.H.data->numpkinds) > 0 && (numunspents= bp->ramchain.H.data->numunspents) > 0 && (Aptr= bp->ramchain.A2) != 0 && (Uptr= bp->ramchain.Uextras) != 0 ) { - sprintf(fname,"%s/%s/debits.N%d",GLOBAL_TMPDIR,coin->symbol,numhdrsi); - sprintf(fname2,"%s/%s/lastspends.N%d",GLOBAL_TMPDIR,coin->symbol,numhdrsi); + sprintf(fname,"%s/%s/debits.%d_N%d",GLOBAL_TMPDIR,coin->symbol,bp->hdrsi,numhdrsi); + sprintf(fname2,"%s/%s/lastspends.%d_N%d",GLOBAL_TMPDIR,coin->symbol,bp->hdrsi,numhdrsi); if ( iter == 0 ) { vupdate_sha256(balancehash.bytes,&vstate,(void *)Aptr,sizeof(*Aptr)*numpkinds);