Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
cff194eb4c
  1. 2
      iguana/coins/genbtc
  2. 4
      iguana/iguana_recv.c

2
iguana/coins/genbtc

@ -1 +1 @@
curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":-1,\"poll\":1,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":8,\"endpend\":2,\"services\":128,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}"
curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":-1,\"poll\":1,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":64,\"endpend\":64,\"services\":128,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}"

4
iguana/iguana_recv.c

@ -838,10 +838,10 @@ void iguana_gotblockM(struct supernet_info *myinfo,struct iguana_info *coin,stru
} //else printf("numsaved.%d SKIP auto issue.[%d:%d] %s\n",numsaved,bp->hdrsi,i,addr->ipaddr);
}
}
else if ( bp->queued == 0 )
else if ( bp->queued == 0 && bp->startutxo == 0 )
{
iguana_bundleQ(myinfo,coin,bp,0);
printf("numsaved.%d [%d] %s\n",numsaved,bp->hdrsi,addr->ipaddr);
//printf("numsaved.%d [%d] %s\n",numsaved,bp->hdrsi,addr->ipaddr);
}
}
} else printf("nonz fpos.%d %s\n",txdata->zblock.fpos,bits256_str(str,origtxdata->zblock.RO.hash2));

Loading…
Cancel
Save