From 65a5b779df5a6afb6f2dae08122743f7d941170a Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 19 Apr 2016 16:49:54 -0500 Subject: [PATCH] test --- iguana/iguana_ramchain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 7cf6be4ae..064e6d369 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -311,9 +311,9 @@ uint32_t iguana_ramchain_addunspent20(struct iguana_info *coin,struct iguana_pee if ( addr != 0 && addr->voutsfp != 0 ) { u->fileid = (uint32_t)addr->addrind; - if ( (u->scriptpos= (uint32_t)scriptpos) == 0 ) - fputc(0,addr->voutsfp), u->scriptpos++; scriptpos = ftell(addr->voutsfp); + if ( (u->scriptpos= (uint32_t)scriptpos) == 0 ) + fputc(0,addr->voutsfp), u->scriptpos++, scriptpos++; if ( u->scriptpos != scriptpos || fwrite(script,1,scriptlen,addr->voutsfp) != scriptlen ) printf("error writing vout scriptlen.%d errno.%d or scriptpos.%lld != %u\n",scriptlen,errno,(long long)scriptpos,u->scriptpos); else addr->dirty[0]++;