@Devs:
$ earthcoind getblockhash 360
9da19a8e9939ee19b8e5942e2ead468ba73b61a4c0788df38427a18604258e89
$ earthcoind getblock 9da19a8e9939ee19b8e5942e2ead468ba73b61a4c0788df38427a18604258e89
{
"hash" : "9da19a8e9939ee19b8e5942e2ead468ba73b61a4c0788df38427a18604258e89",
"confirmations" : 3,
"size" : 420,
"height" : 360,
"version" : 1,
"merkleroot" : "3f9d4348e00bd40314a2b883f5adb76bba4424845a3a4a1099a670e0c933a2a0",
"tx" : [
"4cbf39e6544402e9a84a10dd7c4a38bf83cb10e1cc91ea3a43ce3e423853c2da",
"859a216732622dab166bc3fe5b683075f5b4f3f1983cc9cc67dc7924dd314eff"
],
"time" : 1387607518,
"nonce" : 258415872,
"bits" : "1c0b7d33",
"difficulty" : 22.28172766,
"previousblockhash" : "292203097f5128299bea645e4ef85359d34dec64c86656734818c4c60b314d44",
"nextblockhash" : "98b26726f19aabb2cfca8c5bc6a0ac55f4b3b1995a452615f532c34d99542e4d"
}
$ earthcoind getblockhash 260
620a13cd0780d26ad6b8869ffb31d5922c6e20add46dd390954fb4951fab6e72
$ earthcoind getblock 620a13cd0780d26ad6b8869ffb31d5922c6e20add46dd390954fb4951fab6e72
{
"hash" : "620a13cd0780d26ad6b8869ffb31d5922c6e20add46dd390954fb4951fab6e72",
"confirmations" : 103,
"size" : 191,
"height" : 260,
"version" : 1,
"merkleroot" : "6bbea32ba181b2c695ddb4796839f9bf3ff6117e4d27b835392891e7a06bf4fb",
"tx" : [
"6bbea32ba181b2c695ddb4796839f9bf3ff6117e4d27b835392891e7a06bf4fb"
],
"time" : 1387607502,
"nonce" : 258543872,
"bits" : "1d18eb7f",
"difficulty" : 0.04012795,
"previousblockhash" : "e0db47ebfeb2a372d2a0cfc2bc26ad743d9eec40d85937dd476ef2e569ab240f",
"nextblockhash" : "3b8ea4633ba86028a16c785b82c804fc770320632a29fd687acfef6b65930df1"
}
Do you really think that it took only 16 seconds to mine 100 blocks? And exactly the same GetBlockTime() call is used here:
main.cpp: int64 nActualSpacing = pindexLast->GetBlockTime() - pindexFirst->GetBlockTime();
Are you sure your code calculates the times properly?