Browse Source

Merge pull request #130 from jl777/acspeed

Acspeed
master
jl777 8 years ago
committed by GitHub
parent
commit
04a0c7c808
  1. 2
      iguana/dPoW.h
  2. 2
      iguana/dpow/dpow_rpc.c
  3. 2
      iguana/iguana_notary.c
  4. 2
      iguana/m_LP

2
iguana/dPoW.h

@ -19,7 +19,7 @@
#define DPOW_FIRSTRATIFY 1000 #define DPOW_FIRSTRATIFY 1000
#define DPOW_CHECKPOINTFREQ 10 #define DPOW_CHECKPOINTFREQ 10
#define DPOW_MINSIGS 17 //((height < 90000) ? 7 : 11) #define DPOW_MINSIGS 13 //((height < 90000) ? 7 : 11)
//#define DPOW_M(bp) ((bp)->minsigs) // (((bp)->numnotaries >> 1) + 1) //#define DPOW_M(bp) ((bp)->minsigs) // (((bp)->numnotaries >> 1) + 1)
#define DPOW_MODIND(bp,offset) (((((bp)->height / DPOW_CHECKPOINTFREQ) % (bp)->numnotaries) + (offset)) % (bp)->numnotaries) #define DPOW_MODIND(bp,offset) (((((bp)->height / DPOW_CHECKPOINTFREQ) % (bp)->numnotaries) + (offset)) % (bp)->numnotaries)
#define DPOW_VERSION 0x0770 #define DPOW_VERSION 0x0770

2
iguana/dpow/dpow_rpc.c

@ -553,7 +553,7 @@ uint64_t PAX_fiatdest(uint64_t *seedp,int32_t tokomodo,char *destaddr,uint8_t pu
{ {
uint8_t shortflag=0; char base[4]; int32_t i; uint8_t addrtype,rmd160[20]; int64_t komodoshis=0; uint8_t shortflag=0; char base[4]; int32_t i; uint8_t addrtype,rmd160[20]; int64_t komodoshis=0;
for (i=0; i<3; i++) for (i=0; i<3; i++)
base[i] = toupper(origbase[i]); base[i] = toupper((int32_t)origbase[i]);
base[i] = 0; base[i] = 0;
if ( strcmp(base,"KMD") == 0 ) if ( strcmp(base,"KMD") == 0 )
return(0); return(0);

2
iguana/iguana_notary.c

@ -347,7 +347,7 @@ STRING_ARG(dpow,pending,fiat)
if ( fiat != 0 && fiat[0] != 0 ) if ( fiat != 0 && fiat[0] != 0 )
{ {
for (i=0; fiat[i]!=0; i++) for (i=0; fiat[i]!=0; i++)
base[i] = toupper(fiat[i]); base[i] = toupper((int32_t)fiat[i]);
base[i] = 0; base[i] = 0;
for (i=0; i<myinfo->numdpows; i++) for (i=0; i<myinfo->numdpows; i++)
{ {

2
iguana/m_LP

@ -6,4 +6,4 @@ cd secp256k1; ./m_unix; cd ..
cd ../crypto777; ./m_LP; cd ../iguana cd ../crypto777; ./m_LP; cd ../iguana
gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -O2 -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -O2 -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c
gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c
gcc -g -o ../agents/iguana *.o ../agents/libcrypto777.a -lcurl -lssl -lcrypto -lpthread -lz -lm gcc -g -o ../agents/iguana *.o ../agents/libcrypto777.a -lnanomsg -lcurl -lssl -lcrypto -lpthread -lz -lm

Loading…
Cancel
Save