can't compile asoon as i change the block.nTime program crash on startup
i working on altcoin from bit coin source as soon as i change the epoch time app won't start it's crash
block.nTime = 1388274833;
block.nBits = 0x1d00ffff;
block.nNonce = 2083236893;
if (fTestNet)
{
block.nTime = 1388274833;
block.nNonce = 414098458;
}
my debug.log from -testnet
Bitcoin version v0.8.5.0-ge24fdc0-beta ($Format:%cD)
Using OpenSSL version OpenSSL 1.0.1e 11 Feb 2013
Startup time: 2013-12-29 00:23:47
Default data directory C:\Users\money\AppData\Roaming\Bitcoin
Using data directory C:\Users\money\AppData\Roaming\Bitcoin\testnet3
Using at most 125 connections (2048 file descriptors available)
Using 2 threads for script verification
init message: Verifying wallet...
dbenv.open LogDir=C:\Users\money\AppData\Roaming\Bitcoin\testnet3\database ErrorFile=C:\Users\money\AppData\Roaming\Bitcoin\testnet3\db.log
Bound to [::]:18333
Bound to 0.0.0.0:18333
init message: Loading block index...
Opening LevelDB in C:\Users\money\AppData\Roaming\Bitcoin\testnet3\blocks\index
Opened LevelDB successfully
Opening LevelDB in C:\Users\money\AppData\Roaming\Bitcoin\testnet3\chainstate
Opened LevelDB successfully
LoadBlockIndexDB(): last block file = 0
LoadBlockIndexDB(): transaction index disabled
Initializing databases...
c79aabf91d31d4a4e961da9532d3c0aafb201f3fce7bd4ee048f82e7b16b170f
000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943
4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
CBlock(hash=c79aabf91d31d4a4e961da9532d3c0aafb201f3fce7bd4ee048f82e7b16b170f, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b, nTime=1388274833, nBits=1d00ffff, nNonce=414098458, vtx=1)
CTransaction(hash=4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73)
CTxOut(nValue=50.00000000, scriptPubKey=04678afdb0fe5548271967f1a67130)
vMerkleTree: 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
Pre-allocating up to position 0x1000000 in blk00000.dat
ERROR: CheckProofOfWork() : hash doesn't match nBits
ERROR: CBlock::ReadFromDisk() : errors in block header
*** Failed to read block
Error: Failed to read block
ERROR: LoadBlockIndex() : genesis block not accepted
: Error initializing block database.
Do you want to rebuild the block database now?
Flush(false)
DBFlush(false) ended 0ms
StopNode()
Flushed 0 addresses to peers.dat 31ms
Committing 0 changed transactions to coin database...
Flush(true)
DBFlush(true) ended 0ms
and my Merkel Hash i copy from debug.log
assert(block.hashMerkleRoot == uint256("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"));
block.print();
if (true && block.GetHash() != hashGenesisBlock);
any one know what's the problem?
thanks in advance