Skip to content

Commit

Permalink
Merge pull request jl777#648 from jl777/jl777
Browse files Browse the repository at this point in the history
Jl777
  • Loading branch information
jl777 authored Mar 6, 2018
2 parents 9be8519 + 81b46c0 commit e40f2e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions iguana/dpow/dpow_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ int32_t dpow_checkutxo(struct supernet_info *myinfo,struct dpow_info *dp,struct
minutxo = 199;
n = 10;
}
else if ( strcmp("KMD",coin->symbol) == 0 )
{
minutxo = 512;
n = 256;
}
else
{
minutxo = 49;
Expand Down
3 changes: 3 additions & 0 deletions iguana/iguana777.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,12 +1216,15 @@ int32_t iguana_launchcoin(struct supernet_info *myinfo,char *symbol,cJSON *json,
return(0);
}

void iguana_optableinit();

void iguana_coins(void *arg)
{
struct iguana_info **coins,*coin; char *jsonstr,*symbol; cJSON *array,*item,*json;
int32_t i,n,maxpeers,maphash,initialheight,minconfirms,maxrequests,maxbundles;
int64_t maxrecvcache; uint64_t services; struct vin_info V; struct supernet_info *myinfo;
myinfo = SuperNET_MYINFO(0);
iguana_optableinit();
memset(&V,0,sizeof(V));
if ( (jsonstr= arg) != 0 && (json= cJSON_Parse(jsonstr)) != 0 )
{
Expand Down
6 changes: 3 additions & 3 deletions iguana/iguana_interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ int32_t iguana_checksequenceverify(struct iguana_info *coin,int64_t nLockTime,ui
return(0);
}

void iguana_optableinit(struct iguana_info *coin)
void iguana_optableinit()
{
int32_t i,extralen; uint8_t stackitems,flags; char *opname; struct bitcoin_opcode *op;
if ( OPTABLE == 0 )
Expand Down Expand Up @@ -912,7 +912,7 @@ void iguana_optableinit(struct iguana_info *coin)
int32_t iguana_expandscript(struct iguana_info *coin,char *asmstr,int32_t maxlen,uint8_t *script,int32_t scriptlen)
{
int32_t len,n,j,i = 0; uint8_t opcode; uint32_t val,extraflag;
iguana_optableinit(coin);
iguana_optableinit();
asmstr[0] = len = 0;
while ( i < scriptlen )
{
Expand Down Expand Up @@ -1001,7 +1001,7 @@ int32_t bitcoin_assembler(struct iguana_info *coin,cJSON *logarray,uint8_t scrip
struct iguana_stackdata args[MAX_PUBKEYS_PER_MULTISIG];
uint8_t databuf[MAX_SCRIPT_ELEMENT_SIZE]; char *asmstr,*str,*hexstr; cJSON *item;
int32_t c,numops,dlen,plen,numvars,numused,numargs=0,i,j,k,n=0,len,datalen,errs=0; int64_t val;
iguana_optableinit(coin);
iguana_optableinit();
if ( (asmstr= jstr(interpreter,"interpreter")) == 0 || asmstr[0] == 0 )
return(0);
if ( (numvars= juint(interpreter,"numvars")) > 0 )
Expand Down

0 comments on commit e40f2e0

Please sign in to comment.