Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
ddc43c9263
  1. 2
      iguana/iguana_blocks.c
  2. 6
      iguana/iguana_recv.c
  3. 2
      iguana/iguana_unspents.c

2
iguana/iguana_blocks.c

@ -677,7 +677,7 @@ struct iguana_block *_iguana_chainlink(struct supernet_info *myinfo,struct iguan
process_iguanablock(block->serdata,CHAINPARMS);
}*/
iguana_blockzcopy(coin->chain->zcash,(void *)&coin->blocks.hwmchain,block);
iguana_RTnewblock(myinfo,coin,block);
//iguana_RTnewblock(myinfo,coin,block);
return(block);
}
}

6
iguana/iguana_recv.c

@ -1855,6 +1855,12 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin
coin->balanceflush = 0;
//iguana_utxoaddr_gen(myinfo,coin,(coin->balanceswritten - 1) * coin->chain->bundlesize);
}
if ( coin->RTheight > 0 && coin->RTheight < coin->blocks.hwmchain.height )
{
struct iguana_block *block;
if ( (block= iguana_blockfind("utxogen",coin,iguana_blockhash(coin,coin->RTheight))) != 0 )
iguana_RTnewblock(myinfo,coin,block);
}
flag += iguana_processrecvQ(myinfo,coin,&newhwm);
flag += iguana_reqblocks(myinfo,coin);
if ( time(NULL) > coin->laststats+30 )

2
iguana/iguana_unspents.c

@ -1260,8 +1260,6 @@ uint64_t iguana_RTstart(struct supernet_info *myinfo,struct iguana_info *coin,in
coin->firstRTheight = coin->RTheight = height;
iguana_RTreset(coin);
iguana_RTpurge(coin,coin->firstRTheight);
if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 )
iguana_RTnewblock(myinfo,coin,block);
basilisk_unspents_update(myinfo,coin);
return(coin->histbalance);
}

Loading…
Cancel
Save