Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
1631a98b39
  1. 4
      gecko/gecko.h
  2. 4
      gecko/gecko_miner.c

4
gecko/gecko.h

@ -21,8 +21,8 @@
#define GECKO_DEFAULTVERSION 1 #define GECKO_DEFAULTVERSION 1
#define GECKO_EASIESTDIFF 0x1f7fffff #define GECKO_EASIESTDIFF 0x1f7fffff
#define GECKO_DEFAULTDIFF 0x1f00ffff #define GECKO_DEFAULTDIFF 0x1f0fffff
#define GECKO_DEFAULTDIFFSTR "1f00ffff" #define GECKO_DEFAULTDIFFSTR "1f0fffff"
#define GECKO_FIRSTPOSSIBLEBTC 414000 #define GECKO_FIRSTPOSSIBLEBTC 414000
#define GECKO_FIRSTPOSSIBLEBTCD 1100000 #define GECKO_FIRSTPOSSIBLEBTCD 1100000

4
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 ) if ( (nBits= gecko_nBits(virt,&prevtimestamp,(void *)&newblock,GECKO_DIFFITERS)) != 0 )
{ {
newblock.RO.bits = nBits; newblock.RO.bits = nBits;
printf("mine.%s nBits.%x ht.%d\n",virt->symbol,nBits,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); 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); //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 ) if ( (blockstr= gecko_createblock(myinfo,virt->chain->estblocktime,prevtimestamp,btcd,virt->chain->isPoS,(void *)&newblock,virt->symbol,txptrs,txn_count,maxmillis,minerpubkey33,reward)) != 0 )
{ {

Loading…
Cancel
Save