Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
df03530b22
  1. 2
      iguana/iguana777.h
  2. 11
      iguana/iguana_ramchain.c

2
iguana/iguana777.h

@ -37,7 +37,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_MAXPENDHDRS 1
#define _IGUANA_MAXPENDING 8
#define _IGUANA_MAXBUNDLES 8
#define IGUANA_BUNDLELOOP 77
#define IGUANA_BUNDLELOOP 3
#define IGUANA_RPCPORT 7778
#define IGUANA_MAXRAMCHAINSIZE ((uint64_t)1024L * 1024L * 1024L * 16)

11
iguana/iguana_ramchain.c

@ -472,7 +472,7 @@ uint32_t iguana_ramchain_scriptencode(struct iguana_info *coin,uint8_t *Kspace,u
}
if ( memcmp(script+1,&Kspace[pubkeyoffset],plen) != 0 )
{
for (i=0; i<plen; i++)
for (i=-1; i<=plen; i++)
printf("%02x",script[1+i]);
printf(" script arg\n");
for (i=0; i<plen; i++)
@ -484,13 +484,12 @@ uint32_t iguana_ramchain_scriptencode(struct iguana_info *coin,uint8_t *Kspace,u
}
}
if ( scriptlen < 0xfd )
Kspace[offset] = scriptlen, offset++;
Kspace[offset++] = scriptlen;
else
{
Kspace[offset] = (scriptlen >> 8) & 0xff;
Kspace[offset+1] = scriptlen & 0xff;
Kspace[offset+2] = 0xfd;
offset += 3;
Kspace[offset++] = (scriptlen >> 8) & 0xff;
Kspace[offset++] = scriptlen & 0xff;
Kspace[offset++] = 0xfd;
}
uoffset = offset;
memcpy(&Kspace[uoffset],script,scriptlen);

Loading…
Cancel
Save