From 1631a98b3921e615332dbf73a15180cfc89b2078 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 25 Jun 2016 09:06:54 -0300 Subject: [PATCH] test --- gecko/gecko.h | 4 ++-- gecko/gecko_miner.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gecko/gecko.h b/gecko/gecko.h index ce1d5159d..0bd668200 100755 --- a/gecko/gecko.h +++ b/gecko/gecko.h @@ -21,8 +21,8 @@ #define GECKO_DEFAULTVERSION 1 #define GECKO_EASIESTDIFF 0x1f7fffff -#define GECKO_DEFAULTDIFF 0x1f00ffff -#define GECKO_DEFAULTDIFFSTR "1f00ffff" +#define GECKO_DEFAULTDIFF 0x1f0fffff +#define GECKO_DEFAULTDIFFSTR "1f0fffff" #define GECKO_FIRSTPOSSIBLEBTC 414000 #define GECKO_FIRSTPOSSIBLEBTCD 1100000 diff --git a/gecko/gecko_miner.c b/gecko/gecko_miner.c index 5d381e098..5e0f2002a 100755 --- a/gecko/gecko_miner.c +++ b/gecko/gecko_miner.c @@ -365,8 +365,8 @@ void gecko_miner(struct supernet_info *myinfo,struct iguana_info *btcd,struct ig if ( (nBits= gecko_nBits(virt,&prevtimestamp,(void *)&newblock,GECKO_DIFFITERS)) != 0 ) { newblock.RO.bits = nBits; - printf("mine.%s nBits.%x ht.%d\n",virt->symbol,nBits,newblock.height); - txptrs = gecko_mempool_txptrs(myinfo,virt,&reward,&txn_count,&ptr,space,(int32_t)(sizeof(space)/sizeof(*space)),newblock.height); + printf("mine.%s nBits.%x ht.%d maxmillis.%d\n",virt->symbol,nBits,newblock.height); + txptrs = gecko_mempool_txptrs(myinfo,virt,&reward,&txn_count,&ptr,space,(int32_t)(sizeof(space)/sizeof(*space)),newblock.height,maxmillis); //char str[65]; printf("HWM.%s %p\n",bits256_str(str,newblock.RO.prev_block),&newblock.RO.prev_block); if ( (blockstr= gecko_createblock(myinfo,virt->chain->estblocktime,prevtimestamp,btcd,virt->chain->isPoS,(void *)&newblock,virt->symbol,txptrs,txn_count,maxmillis,minerpubkey33,reward)) != 0 ) {