From e53ed4ab2f10e6b2fbed834a7476de95082335a6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 17 Sep 2016 05:51:43 -0300 Subject: [PATCH] test --- includes/iguana_defines.h | 2 +- includes/iguana_structs.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/iguana_defines.h b/includes/iguana_defines.h index b06737dc6..f77c4fd41 100755 --- a/includes/iguana_defines.h +++ b/includes/iguana_defines.h @@ -57,7 +57,7 @@ #define IGUANA_MAXBUNDLES (50000000 / 500) #define IGUANA_MINPEERS 64 -#define IGUANA_LOG2MAXPEERS 10 // affects ramchain data format! +#define IGUANA_LOG2MAXPEERS 11 // cant exceed 13 bits as ramchain unspents has bitfield #define IGUANA_LOG2PEERFILESIZE 23 #define IGUANA_MAXPEERS (1 << IGUANA_LOG2MAXPEERS) diff --git a/includes/iguana_structs.h b/includes/iguana_structs.h index 3f3360ed9..e7943207c 100755 --- a/includes/iguana_structs.h +++ b/includes/iguana_structs.h @@ -272,9 +272,9 @@ struct iguana_spend256 { bits256 prevhash2; uint64_t scriptpos:48,vinscriptlen:1 // permanent readonly structs struct iguana_txid { bits256 txid; uint64_t txidind:29,firstvout:28,firstvin:28,bundlei:11,locktime:32,version:32,timestamp:32,extraoffset:32; uint16_t numvouts,numvins; }PACKEDSTRUCT; -struct iguana_unspent { uint64_t value; uint32_t txidind,pkind,prevunspentind,scriptpos; uint16_t scriptlen,hdrsi; uint16_t fileid:IGUANA_LOG2MAXPEERS+1,type:5; int16_t vout; }PACKEDSTRUCT; +struct iguana_unspent { uint64_t value; uint32_t txidind,pkind,prevunspentind,scriptpos,scriptlen:13,fileid:14,type:5; uint16_t hdrsi; int16_t vout; } PACKEDSTRUCT; -struct iguana_spend { uint64_t scriptpos:48,scriptlen:16; uint32_t spendtxidind,sequenceid; int16_t prevout; uint16_t fileid:15,external:1; }PACKEDSTRUCT; // numsigs:4,numpubkeys:4,p2sh:1,sighash:4 +struct iguana_spend { uint64_t scriptpos:48,scriptlen:16; uint32_t spendtxidind,sequenceid; int16_t prevout; uint16_t fileid:14,external:1,tbd:1; }PACKEDSTRUCT; // numsigs:4,numpubkeys:4,p2sh:1,sighash:4 struct iguana_pkhash { uint8_t rmd160[20]; uint32_t pkind; }PACKEDSTRUCT; //firstunspentind,pubkeyoffset