i dont know why i have not " block.GetHash() == 000030b4df1fca238412d3acb536f920fb3fe4fc2b1255c40e78d54ac791e1ac" section in my debug.log in x11 algorytm.
here is my main.cpp
// Only add the genesis block if not reindexing (in which case we reuse the one already on disk)
if (!fReindex) {
// Genesis Block:
// CBlock(hash=12a765e31ffd4059bada, PoW=0000050c34a64b415b6b, ver=1, hashPrevBlock=00000000000000000000, hashMerkleRoot=97ddfbbae6, nTime=1317972665, nBits=1e0ffff0, nNonce=2084524493, vtx=1)
// CTransaction(hash=97ddfbbae6, ver=1, vin.size=1, vout.size=1, nLockTime=0)
// CTxIn(COutPoint(0000000000, -1), coinbase 04ffff001d0104404e592054696d65732030352f4f63742f32303131205374657665204a6f62732c204170706c65e280997320566973696f6e6172792c2044696573206174203536)
// CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
// vMerkleTree: 97ddfbbae6
// Genesis block
const char* pszTimestamp = "Coindesk 27/May/2014 Facebook-Integrated Wallet Makes Sending Bitcoin as Easy as Messaging";
CTransaction txNew;
txNew.vin.resize(1);
txNew.vout.resize(1);
txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
txNew.vout[0].nValue = 50 * COIN;
txNew.vout[0].scriptPubKey = CScript() << ParseHex("040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHECKSIG;
CBlock block;
block.vtx.push_back(txNew);
block.hashPrevBlock = 0;
block.hashMerkleRoot = block.BuildMerkleTree();
block.nVersion = 1;
block.nTime = 1401181723;
block.nBits = 0x1e0ffff0;
block.nNonce = 0;
if (fTestNet)
{
block.nTime = 1401181723;
block.nNonce = 3861367235;
}
//// debug print
uint256 hash = block.GetHash();
printf("%s\n", hash.ToString().c_str());
printf("%s\n", hashGenesisBlock.ToString().c_str());
printf("%s\n", block.hashMerkleRoot.ToString().c_str());
assert(block.hashMerkleRoot == uint256("0x25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e"));
block.print();
assert(hash == hashGenesisBlock);
// Start new block file
try {
unsigned int nBlockSize = ::GetSerializeSize(block, SER_DISK, CLIENT_VERSION);
CDiskBlockPos blockPos;
CValidationState state;
if (!FindBlockPos(state, blockPos, nBlockSize+8, 0, block.nTime))
return error("LoadBlockIndex() : FindBlockPos failed");
if (!block.WriteToDisk(blockPos))
return error("LoadBlockIndex() : writing genesis block to disk failed");
if (!block.AddToBlockIndex(state, blockPos))
return error("LoadBlockIndex() : genesis block not accepted");
} catch(std::runtime_error &e) {
return error("LoadBlockIndex() : failed to initialize block database: %s", e.what());
}
}
return true;
}
and my wallet closed with Failed to read block and my debug.log is
2014-05-27 09:31:24
2014-05-27 09:31:24 DarkCoin version v0.9.4.8-gd1aadc8-beta (Sun, 25 May 2014 14:08:31 -0700)
2014-05-27 09:31:24 Using OpenSSL version OpenSSL 1.0.1g 7 Apr 2014
2014-05-27 09:31:24 Default data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 09:31:24 Using data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 09:31:24 Using at most 125 connections (2048 file descriptors available)
2014-05-27 09:31:24 Using 4 threads for script verification
2014-05-27 09:31:24 init message: Verifying wallet...
2014-05-27 09:31:24 dbenv.open LogDir=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\database ErrorFile=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\db.log
2014-05-27 09:31:24 Bound to [::]:47258
2014-05-27 09:31:24 Bound to 0.0.0.0:47258
2014-05-27 09:31:24 init message: Loading block index...
2014-05-27 09:31:24 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\blocks\index
2014-05-27 09:31:24 Opened LevelDB successfully
2014-05-27 09:31:24 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\chainstate
2014-05-27 09:31:24 Opened LevelDB successfully
2014-05-27 09:31:24 LoadBlockIndexDB(): last block file = 0
2014-05-27 09:31:24 LoadBlockIndexDB(): transaction index disabled
2014-05-27 09:31:24 Initializing databases...
2014-05-27 09:31:24 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 09:31:24 00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6
2014-05-27 09:31:24 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 09:46:05
2014-05-27 09:46:05 DarkCoin version v0.9.4.8-gd1aadc8-beta (Sun, 25 May 2014 14:08:31 -0700)
2014-05-27 09:46:05 Using OpenSSL version OpenSSL 1.0.1g 7 Apr 2014
2014-05-27 09:46:05 Default data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 09:46:05 Using data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 09:46:05 Using at most 125 connections (2048 file descriptors available)
2014-05-27 09:46:05 Using 4 threads for script verification
2014-05-27 09:46:05 init message: Verifying wallet...
2014-05-27 09:46:05 dbenv.open LogDir=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\database ErrorFile=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\db.log
2014-05-27 09:46:05 Bound to [::]:47258
2014-05-27 09:46:05 Bound to 0.0.0.0:47258
2014-05-27 09:46:05 init message: Loading block index...
2014-05-27 09:46:05 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\blocks\index
2014-05-27 09:46:05 Opened LevelDB successfully
2014-05-27 09:46:05 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\chainstate
2014-05-27 09:46:05 Opened LevelDB successfully
2014-05-27 09:46:05 LoadBlockIndexDB(): last block file = 0
2014-05-27 09:46:05 LoadBlockIndexDB(): transaction index disabled
2014-05-27 09:46:05 Initializing databases...
2014-05-27 09:46:05 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 09:46:05 00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6
2014-05-27 09:46:05 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 09:46:05 CBlock(hash=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, input=0100000000000000000000000000000000000000000000000000000000000000000000005e772513d42435d9871208955bb543a61e4e44f4e7ea0f99f8a3c237205a612526558453f0ff0f1e00000000, PoW=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, nTime=1401181478, nBits=1e0ffff0, nNonce=0, vtx=1)
2014-05-27 09:46:05 CTransaction(hash=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c5a436f696e6465736b2032372f4d61792f323031342046616365626f6f6b2d496e74656772617465642057616c6c6574204d616b65732053656e64696e6720426974636f696e2061732045617379206173204d6573736167696e67)
CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
vMerkleTree: 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:04:49
2014-05-27 10:04:49 DarkCoin version v0.9.4.8-gd1aadc8-beta (Sun, 25 May 2014 14:08:31 -0700)
2014-05-27 10:04:49 Using OpenSSL version OpenSSL 1.0.1g 7 Apr 2014
2014-05-27 10:04:49 Default data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 10:04:49 Using data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 10:04:49 Using at most 125 connections (2048 file descriptors available)
2014-05-27 10:04:49 Using 4 threads for script verification
2014-05-27 10:04:49 init message: Verifying wallet...
2014-05-27 10:04:49 dbenv.open LogDir=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\database ErrorFile=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\db.log
2014-05-27 10:04:49 Bound to [::]:47258
2014-05-27 10:04:49 Bound to 0.0.0.0:47258
2014-05-27 10:04:49 init message: Loading block index...
2014-05-27 10:04:49 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\blocks\index
2014-05-27 10:04:49 Opened LevelDB successfully
2014-05-27 10:04:49 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\chainstate
2014-05-27 10:04:49 Opened LevelDB successfully
2014-05-27 10:04:49 LoadBlockIndexDB(): last block file = 0
2014-05-27 10:04:49 LoadBlockIndexDB(): transaction index disabled
2014-05-27 10:04:49 Initializing databases...
2014-05-27 10:04:49 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 10:04:49 00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6
2014-05-27 10:04:49 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:04:49 CBlock(hash=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, input=0100000000000000000000000000000000000000000000000000000000000000000000005e772513d42435d9871208955bb543a61e4e44f4e7ea0f99f8a3c237205a612526558453f0ff0f1e00000000, PoW=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, nTime=1401181478, nBits=1e0ffff0, nNonce=0, vtx=1)
2014-05-27 10:04:49 CTransaction(hash=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c5a436f696e6465736b2032372f4d61792f323031342046616365626f6f6b2d496e74656772617465642057616c6c6574204d616b65732053656e64696e6720426974636f696e2061732045617379206173204d6573736167696e67)
CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
vMerkleTree: 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:09:53
2014-05-27 10:09:53 DarkCoin version v0.9.4.8-gd1aadc8-beta (Sun, 25 May 2014 14:08:31 -0700)
2014-05-27 10:09:53 Using OpenSSL version OpenSSL 1.0.1g 7 Apr 2014
2014-05-27 10:09:53 Default data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 10:09:53 Using data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 10:09:53 Using at most 125 connections (2048 file descriptors available)
2014-05-27 10:09:53 Using 4 threads for script verification
2014-05-27 10:09:53 init message: Verifying wallet...
2014-05-27 10:09:53 dbenv.open LogDir=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\database ErrorFile=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\db.log
2014-05-27 10:09:53 Bound to [::]:47258
2014-05-27 10:09:53 Bound to 0.0.0.0:47258
2014-05-27 10:09:53 init message: Loading block index...
2014-05-27 10:09:53 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\blocks\index
2014-05-27 10:09:53 Opened LevelDB successfully
2014-05-27 10:09:53 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\chainstate
2014-05-27 10:09:53 Opened LevelDB successfully
2014-05-27 10:09:53 LoadBlockIndexDB(): last block file = 0
2014-05-27 10:09:53 LoadBlockIndexDB(): transaction index disabled
2014-05-27 10:09:53 Initializing databases...
2014-05-27 10:09:53 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 10:09:53 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 10:09:53 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:09:53 CBlock(hash=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, input=0100000000000000000000000000000000000000000000000000000000000000000000005e772513d42435d9871208955bb543a61e4e44f4e7ea0f99f8a3c237205a612526558453f0ff0f1e00000000, PoW=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, nTime=1401181478, nBits=1e0ffff0, nNonce=0, vtx=1)
2014-05-27 10:09:53 CTransaction(hash=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c5a436f696e6465736b2032372f4d61792f323031342046616365626f6f6b2d496e74656772617465642057616c6c6574204d616b65732053656e64696e6720426974636f696e2061732045617379206173204d6573736167696e67)
CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
vMerkleTree: 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:09:53 Pre-allocating up to position 0x1000000 in blk00000.dat
2014-05-27 10:09:53 ERROR: CheckProofOfWork() : hash doesn't match nBits
2014-05-27 10:09:53 ERROR: CBlock::ReadFromDisk() : errors in block header
2014-05-27 10:09:53 *** Failed to read block
2014-05-27 10:09:55 ERROR: LoadBlockIndex() : genesis block not accepted
2014-05-27 10:09:55 Shutdown : In progress...
2014-05-27 10:09:55 StopNode()
2014-05-27 10:09:55 Flushed 0 addresses to peers.dat 16ms
2014-05-27 10:09:55 Committing 0 changed transactions to coin database...
2014-05-27 10:09:55 Shutdown : done
any idea about working ? i recompile it over 10 times