Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
51d3a37979
  1. 1
      iguana/iguana777.c
  2. 2
      iguana/iguana_unspents.c
  3. 2
      iguana/main.c

1
iguana/iguana777.c

@ -545,6 +545,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers,
coin->myservices = services; coin->myservices = services;
printf("ensure directories\n"); printf("ensure directories\n");
sprintf(dirname,"accounts/%s",symbol), OS_ensure_directory(dirname); sprintf(dirname,"accounts/%s",symbol), OS_ensure_directory(dirname);
sprintf(dirname,"DB/ro/%s",symbol), OS_ensure_directory(dirname);
sprintf(dirname,"DB/ro"), OS_ensure_directory(dirname); sprintf(dirname,"DB/ro"), OS_ensure_directory(dirname);
sprintf(dirname,"DB/%s",symbol), OS_ensure_directory(dirname); sprintf(dirname,"DB/%s",symbol), OS_ensure_directory(dirname);
sprintf(dirname,"DB/%s/accounts",symbol), OS_ensure_directory(dirname); sprintf(dirname,"DB/%s/accounts",symbol), OS_ensure_directory(dirname);

2
iguana/iguana_unspents.c

@ -547,7 +547,7 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp)
if ( bp->validated <= 1 ) if ( bp->validated <= 1 )
{ {
bp->validated = (uint32_t)time(NULL); bp->validated = (uint32_t)time(NULL);
printf("VALIDATE.%d %u\n",bp->bundleheight,bp->validated); //printf("VALIDATE.%d %u\n",bp->bundleheight,bp->validated);
} }
return(0); return(0);
} }

2
iguana/main.c

@ -336,6 +336,8 @@ mksquashfs DB/BTC BTC.lzo -comp lzo
mksquashfs DB/BTC BTC.lzo1m -comp lzo -b 1048576 mksquashfs DB/BTC BTC.lzo1m -comp lzo -b 1048576
mksquashfs DB/BTC BTC.squash mksquashfs DB/BTC BTC.squash
mksquashfs DB/BTC BTC.squash1M -b 1048576 mksquashfs DB/BTC BTC.squash1M -b 1048576
sudo mount BTC.xz DB/ro/BTC -t squashfs -o loop
*/ */
int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi,int32_t purgedist) int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi,int32_t purgedist)

Loading…
Cancel
Save