bitcoin源码v0.14.2制作山寨币 10C

1.下载源码
2.只改变一个简单的参数genesisoutputScript = CScript() << ParseHex("04.....) 's value by download and run [ cat genesiscoinbase.hex ]
3.Run GenesisH0 with
python genesis.py -t $(date +%s) -a SHA256 -z "Now is 2018-02-20" -p 04..... -n 0x1e00ffff

4.It says merkle hash : be766.... I input this to chainparams.cpp's Main assert(genesis.hashMerkleRoot == unit256s("0xbe766............"));

and it says pubkey : 04678a.....

where this pubkey should be written at source?

and it says time : 1519.... I input this to chainparams.cpp's Main's

genesis = CreateGenesisBlock(1519..... this's first parameter)
and it says nonce : 170938 I input this to

genesis = CreateGenesisBlock(1519..... , 179038, this's 2nd parameter)
and genesis hash : 215c........... I input this to

assert(consensus.hashGenesisBlock == unit256s("0x215c............"));
5.重复step3 for Testnet part
6.make make install run:bitcoin-qt
7.bitcoin-qt: chainparams.cpp:120: CMainParams::CMainParams(): Assertion `consensus.hashGenesisBlock == uint256S("0x215c....")failed
8.What did I wrong? and how to fix?

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问