Go-Ethereum
私有(geth)網路中的Genesis.json
我的 genesis.json
{ "config": { "chainId": 9731, "homesteadBlock": 0, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "eip158Block": 0, "byzantiumBlock": 0, "Ethash": { "period": 15, "epoch": 30000 } }, "nonce": "0x0", "timestamp": "0x5d5769ad", "gasLimit": "0x7FFFFFFFFFFFF", "difficulty": "0x1", "alloc": { "0x02404f2fd8fb1323efe14603968ffc9ee21c4f4f": { "balance": "0x200000000000000000000000000000000000000000000000000000000000000" } }, "number": "0x0", "gasUsed": "0x0", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000" }
升級 geth 後,我收到以下消息
config="{ChainID: 9731 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: <nil> Petersburg: <nil> Istanbul: <nil> Engine: ethash}"
- 它顯示 DAO nil 和 DAOsupport false(呼叫智能合約是否有問題)。如何使 DAOsupport 為真。
2.部署智能合約後,功能無法正常工作
最新的 Solidity 編譯器依賴於君士坦丁堡和彼得堡引入的功能。請為您自己的網路啟用它並使用下面的 JSON 文件。
{ "config": { "chainId": 9731, "homesteadBlock": 0, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "eip158Block": 0, "byzantiumBlock": 0, "constantinopleBlock": 0, "petersburgBlock": 0, "ethash": {} }, "nonce": "0x0", "timestamp": "0x5d5cdc87", "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000", "gasLimit": "0x47b760", "difficulty": "0x80000", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000", "alloc": { "0000000000000000000000000000000000000000": { "balance": "0x1" } }, "number": "0x0", "gasUsed": "0x0", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000" }