Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d7c4ccd37c
  1. 2
      gecko/gecko_miner.c
  2. 1
      iguana/iguana_sign.c

2
gecko/gecko_miner.c

@ -338,7 +338,7 @@ void gecko_miner(struct supernet_info *myinfo,struct iguana_info *btcd,struct ig
}
if ( (virt->blocks.hwmchain.height % myinfo->numrelays) != myinfo->RELAYID )
{
if ( myinfo->numrelays < 3 )
//if ( myinfo->numrelays < 3 )
return;
gap = (int32_t)(time(NULL) - virt->backstoptime) / virt->chain->estblocktime;
for (i=0; i<gap; i++)

1
iguana/iguana_sign.c

@ -254,6 +254,7 @@ cJSON *iguana_voutjson(struct iguana_info *coin,struct iguana_msgvout *vout,int3
uint8_t space[8192]; cJSON *addrs,*skey,*json = cJSON_CreateObject();
vp = calloc(1,sizeof(*vp));
jadd64bits(json,"satoshis",vout->value);
jaddnum(json,"value",dstr(vout->value));
jaddnum(json,"n",txi);
//"scriptPubKey":{"asm":"OP_DUP OP_HASH160 5f69cb73016264270dae9f65c51f60d0e4d6fd44 OP_EQUALVERIFY OP_CHECKSIG","reqSigs":1,"type":"pubkeyhash","addresses":["RHyh1V9syARTf2pyxibz7v27D5paBeWza5"]}
if ( vout->pk_script != 0 && vout->pk_scriptlen*2+1 < sizeof(scriptstr) )

Loading…
Cancel
Save