Bitcoin Forum
May 02, 2024, 12:58:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Genesis block not accepted  (Read 2405 times)
pooler1122 (OP)
Member
**
Offline Offline

Activity: 91
Merit: 10


View Profile
June 13, 2014, 03:14:55 PM
 #1

Now , i meet one issue , after i twice compile wallet ,  i can't create genesis blcok ,   how to fix it ,  need help !!!




below is debug.log

Code:
Bound to [::]:23446
Bound to 0.0.0.0:23446
Loading block index...
CBlock(hash=4398bf41575e641c78eccc4d50bc99b7f2165fc23402b4e614d8255e28814f15, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=ac989e21f322658b30daf9934753f1c1f0650000f844add87bc4332fd548d373, nTime=1402659000, nBits=1e0fffff, nNonce=1373666, vtx=1, vchBlockSig=)
  Coinbase(hash=ac989e21f3, nTime=1402659000, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f270431332f36)
    CTxOut(empty)
  vMerkleTree: ac989e21f3
block.GetHash() == 4398bf41575e641c78eccc4d50bc99b7f2165fc23402b4e614d8255e28814f15
block.hashMerkleRoot == ac989e21f322658b30daf9934753f1c1f0650000f844add87bc4332fd548d373
block.nTime = 1402659000
block.nNonce = 1373666
ERROR: AddToBlockIndex() : Rejected by stake modifier checkpoint height=0, modifier=0x0000000000000000
ERROR: LoadBlockIndex() : genesis block not accepted
EnvShutdown exception: Invalid argument (22)

1714611506
Hero Member
*
Offline Offline

Posts: 1714611506

View Profile Personal Message (Offline)

Ignore
1714611506
Reply with quote  #2

1714611506
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714611506
Hero Member
*
Offline Offline

Posts: 1714611506

View Profile Personal Message (Offline)

Ignore
1714611506
Reply with quote  #2

1714611506
Report to moderator
1714611506
Hero Member
*
Offline Offline

Posts: 1714611506

View Profile Personal Message (Offline)

Ignore
1714611506
Reply with quote  #2

1714611506
Report to moderator
1714611506
Hero Member
*
Offline Offline

Posts: 1714611506

View Profile Personal Message (Offline)

Ignore
1714611506
Reply with quote  #2

1714611506
Report to moderator
bitcoinreactor
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 13, 2014, 04:43:58 PM
 #2

Now , i meet one issue , after i twice compile wallet ,  i can't create genesis blcok ,   how to fix it ,  need help !!!




below is debug.log

Code:
Bound to [::]:23446
Bound to 0.0.0.0:23446
Loading block index...
CBlock(hash=4398bf41575e641c78eccc4d50bc99b7f2165fc23402b4e614d8255e28814f15, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=ac989e21f322658b30daf9934753f1c1f0650000f844add87bc4332fd548d373, nTime=1402659000, nBits=1e0fffff, nNonce=1373666, vtx=1, vchBlockSig=)
  Coinbase(hash=ac989e21f3, nTime=1402659000, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f270431332f36)
    CTxOut(empty)
  vMerkleTree: ac989e21f3
block.GetHash() == 4398bf41575e641c78eccc4d50bc99b7f2165fc23402b4e614d8255e28814f15
block.hashMerkleRoot == ac989e21f322658b30daf9934753f1c1f0650000f844add87bc4332fd548d373
block.nTime = 1402659000
block.nNonce = 1373666
ERROR: AddToBlockIndex() : Rejected by stake modifier checkpoint height=0, modifier=0x0000000000000000
ERROR: LoadBlockIndex() : genesis block not accepted
EnvShutdown exception: Invalid argument (22)

kernel.cpp is the answer Smiley
hardcoded list of stake modifiers checksum there Smiley

BTC: 17CHqn3XE3Waf7Qfkm9p2MQE1VgB8gVbG4
bitcoinreactor
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 14, 2014, 07:45:48 AM
 #3

Just in case someone would ask something like this (see below), here is what i would answer, hopefully helping other people :

But ... again ... if you can't find this out ... building, maintaining and releasing another fork just may not be a thing for you to do !

Quote
Hi , below is the kernel.cpp  code , can you help me check , and how to update and create genesis block , thanks

below is the kernel.cpp  code

Code:
unsigned int nModifierInterval = MODIFIER_INTERVAL;

// Hard checkpoints of stake modifiers to ensure they are deterministic
static std::map<int, unsigned int> mapStakeModifierCheckpoints =
    boost::assign::map_list_of
    (     0, 0xfd11f4e7u )
;


so .. here's what i'd answer :

just .... log it damnit Smiley

find the line that outputs this log entry and ... just log the stake modifier checksum!
Quote
ERROR: AddToBlockIndex() : Rejected by stake modifier checkpoint height=0, modifier=0x0000000000000000


If you can't find that out either (ooooo ... this coin's gonna be SOMETHING) :
Quote
if (!CheckStakeModifierCheckpoints(pindexNew->nHeight, pindexNew->nStakeModifierChecksum))
        return error("AddToBlockIndex() : Rejected by stake modifier checkpoint height=%d, modifier=0x%016"PRI64x" pindexNew->nStakeModifierChecksum=0x%08"PRI64x, pindexNew->nHeight, nStakeModifier, pindexNew->nStakeModifierChecksum);

BTC: 17CHqn3XE3Waf7Qfkm9p2MQE1VgB8gVbG4
bitcoinreactor
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 14, 2014, 07:49:49 AM
 #4

again ... if you couldn't find that out by yourself, please ... stop trying and do not release another fork !

BTC: 17CHqn3XE3Waf7Qfkm9p2MQE1VgB8gVbG4
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!