Bitcoin Forum
June 29, 2024, 03:37:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: can't compile as soon as i change the block.nTime program crash on startup  (Read 1428 times)
mikelis (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
December 29, 2013, 12:29:20 AM
 #1

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
Code:
 block.nTime    = 1388274833;
        block.nBits    = 0x1d00ffff;
        block.nNonce   = 2083236893;

        if (fTestNet)
        {
            block.nTime    = 1388274833;
            block.nNonce   = 414098458;
        }


my  debug.log from -testnet
Code:
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

Code:
 assert(block.hashMerkleRoot == uint256("4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"));
        block.print();
       if (true && block.GetHash() != hashGenesisBlock);

any one know what's the problem?

thanks in advance
mikelis (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
December 29, 2013, 12:58:56 AM
 #2

maby i missing something with the block.nBits    = 0x1d00ffff;?
mikelis (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
December 29, 2013, 01:08:52 AM
 #3

by the the client working with -testnet -noirc
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!