Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
791d8e5346
  1. 2
      iguana/iguana777.h
  2. 1
      iguana/iguana_scripts.c

2
iguana/iguana777.h

@ -321,7 +321,7 @@ struct iguana_ledger
// ramchain append only structs -> canonical 32bit inds and ledgerhashes
struct iguana_unspent20 { uint64_t value; uint32_t scriptfpos,txidind:28,type:4; uint16_t scriptlen; uint8_t rmd160[20],script[68]; } __attribute__((packed));
struct iguana_spend256 { bits256 prevhash2; uint8_t vinscript[140]; uint32_t sequenceid,scriptfpos; int16_t prevout; uint16_t vinscriptlen,spendind; } __attribute__((packed));
struct iguana_spend256 { bits256 prevhash2; uint8_t vinscript[256]; uint32_t sequenceid,scriptfpos; int16_t prevout; uint16_t vinscriptlen,spendind; } __attribute__((packed));
struct iguana_txid { bits256 txid; uint32_t txidind,firstvout,firstvin,locktime,version,timestamp,extraoffset; uint16_t numvouts,numvins; } __attribute__((packed));

1
iguana/iguana_scripts.c

@ -812,7 +812,6 @@ long iguana_rwscript(struct iguana_info *coin,int32_t rwflag,void *fileptr,long
long scriptpos; struct scriptdata data; uint8_t *script = *scriptptrp;
if ( spendflag == 0 && (scriptpos= iguana_scriptstablefind(coin,spendflag,script,*lenp)) != 0 )
return(scriptpos);
return(0);
memset(&data,0,sizeof(data));
if ( rwflag != 0 && fp != 0 && fileptr == 0 )
{

Loading…
Cancel
Save