Browse Source

osx fix

https://bytecoin.org/blog/pthread-bug-osx/

new m_osx:

gcc -Wno-deprecated -c -O2 *.c
gcc -Wno-deprecated -c main.c iguana777.c iguana_bundles.c
gcc -Wno-deprecated -o ../agents/iguana *.o ../agents/libcrypto777.a
../osx/libcurl.a ../osx/libssl.a ../osx/libcrypto.a
../osx/libsecp256k1.a ../osx/libgmp.a -lpthread -lm
release/v0.1
jl777 9 years ago
parent
commit
03612df478
  1. BIN
      agents/iguana
  2. 0
      iguana/help/.tmpmarker
  3. 6
      iguana/iguana_unspents.c
  4. 4
      iguana/m_osx
  5. 2
      iguana/main.c
  6. BIN
      osx/libcrypto.a
  7. BIN
      osx/libcurl.a
  8. BIN
      osx/libgmp.a
  9. BIN
      osx/libsecp256k1.a
  10. BIN
      osx/libssl.a

BIN
agents/iguana

Binary file not shown.

0
iguana/help/.tmpmarker

6
iguana/iguana_unspents.c

@ -1108,7 +1108,7 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi,int32_t pu
for (hdrsi=0; hdrsi<coin->bundlescount; hdrsi++) for (hdrsi=0; hdrsi<coin->bundlescount; hdrsi++)
if ( (bp= coin->bundles[hdrsi]) == 0 || bp->balancefinish <= 1 || bp->ramchain.H.data == 0 || bp->ramchain.A == 0 || bp->ramchain.Uextras == 0 ) if ( (bp= coin->bundles[hdrsi]) == 0 || bp->balancefinish <= 1 || bp->ramchain.H.data == 0 || bp->ramchain.A == 0 || bp->ramchain.Uextras == 0 )
break; break;
if ( hdrsi <= coin->balanceswritten || hdrsi < refhdrsi ) if ( hdrsi < coin->balanceswritten || hdrsi < refhdrsi )
return(0); return(0);
numhdrsi = hdrsi; numhdrsi = hdrsi;
vupdate_sha256(balancehash.bytes,&vstate,0,0); vupdate_sha256(balancehash.bytes,&vstate,0,0);
@ -1274,12 +1274,12 @@ int32_t iguana_balancecalc(struct iguana_info *coin,struct iguana_bundle *bp,int
} }
bp->balancefinish = (uint32_t)time(NULL); bp->balancefinish = (uint32_t)time(NULL);
bp->queued = 0; bp->queued = 0;
iguana_validateQ(coin,bp);
if ( bp->hdrsi >= coin->longestchain/coin->chain->bundlesize-1 ) if ( bp->hdrsi >= coin->longestchain/coin->chain->bundlesize-1 )
{ {
iguana_balanceflush(coin,bp->hdrsi,3); if ( iguana_balanceflush(coin,bp->hdrsi,3) > 0 )
printf("balanceswritten.%d flushed bp->hdrsi %d vs %d coin->longestchain/coin->chain->bundlesize\n",coin->balanceswritten,bp->hdrsi,coin->longestchain/coin->chain->bundlesize); printf("balanceswritten.%d flushed bp->hdrsi %d vs %d coin->longestchain/coin->chain->bundlesize\n",coin->balanceswritten,bp->hdrsi,coin->longestchain/coin->chain->bundlesize);
} }
iguana_validateQ(coin,bp);
flag++; flag++;
} }
else else

4
iguana/m_osx

@ -1 +1,3 @@
gcc -Wno-deprecated -o ../agents/iguana -O2 *.c ../agents/libcrypto777.a -lcurl -lssl -lcrypto -lpthread -lm gcc -Wno-deprecated -c -O2 *.c
gcc -Wno-deprecated -c main.c iguana777.c iguana_bundles.c
gcc -Wno-deprecated -o ../agents/iguana *.o ../agents/libcrypto777.a ../osx/libcurl.a ../osx/libssl.a ../osx/libcrypto.a ../osx/libsecp256k1.a ../osx/libgmp.a -lpthread -lm

2
iguana/main.c

@ -1090,11 +1090,11 @@ void iguana_main(void *arg)
if ( 0 ) if ( 0 )
{ {
#ifndef _WIN32 #ifndef _WIN32
signal(SIGABRT,sigabort_func);
signal(SIGINT,sigint_func); signal(SIGINT,sigint_func);
signal(SIGILL,sigillegal_func); signal(SIGILL,sigillegal_func);
signal(SIGHUP,sighangup_func); signal(SIGHUP,sighangup_func);
//signal(SIGKILL,sigkill_func); //signal(SIGKILL,sigkill_func);
signal(SIGABRT,sigabort_func);
signal(SIGQUIT,sigquit_func); signal(SIGQUIT,sigquit_func);
signal(SIGCHLD,sigchild_func); signal(SIGCHLD,sigchild_func);
signal(SIGALRM,sigalarm_func); signal(SIGALRM,sigalarm_func);

BIN
osx/libcrypto.a

Binary file not shown.

BIN
osx/libcurl.a

Binary file not shown.

BIN
osx/libgmp.a

Binary file not shown.

BIN
osx/libsecp256k1.a

Binary file not shown.

BIN
osx/libssl.a

Binary file not shown.
Loading…
Cancel
Save