From a47f4eeafb241f82ab552c2c1bbfa1c5bcdfdd71 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 17 Sep 2016 05:48:26 -0300 Subject: [PATCH] test --- includes/iguana_defines.h | 2 +- includes/iguana_structs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/iguana_defines.h b/includes/iguana_defines.h index bd7b3a7b9..b06737dc6 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 11 +#define IGUANA_LOG2MAXPEERS 10 // affects ramchain data format! #define IGUANA_LOG2PEERFILESIZE 23 #define IGUANA_MAXPEERS (1 << IGUANA_LOG2MAXPEERS) diff --git a/includes/iguana_structs.h b/includes/iguana_structs.h index c253b6580..3f3360ed9 100755 --- a/includes/iguana_structs.h +++ b/includes/iguana_structs.h @@ -272,7 +272,7 @@ 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:11,type:5; int16_t vout; }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_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