ethereum - Genesis.json 添加 kovan 或 ropsten 网络
问题描述
也许是愚蠢的问题,但我对 ETH 比较陌生。
这是我用于私有 ETH 节点的 genesis.json
{
"config": {
"chainId": 326432352,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"clique": {
"period": 5,
"epoch": 30000
}
},
"nonce": "0x0",
"timestamp": "0x5a8efd25",
"extraData": "0x00000000000000000000000000000000000000000000000000000000000000003590aca93338b0721966a8d0c96ebf2c4c87c5448cc5a1a0802db41db826c2fcb72423744338dcb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0xf42400",
"difficulty": "0x1",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"3590aca93338b0721966a8d0c96ebf2c4c87c544": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
},
"8cc5a1a0802db41db826c2fcb72423744338dcb0": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
}
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
链 ID
是一些随机数。但我想使用 KOVAN 或 ROPSTEN ETH 节点进行测试。我也不想从一开始就检索所有 ETH 块,但我想从某个特定块开始同步。有可能吗?
以下网络 ID 是为特定的以太坊网络保留的。
0: Olympic, Ethereum public pre-release testnet 1: Frontier, Homestead, Metropolis, the Ethereum public main network 1: Classic, the (un)forked public Ethereum Classic main network, chain ID 61 1: Expanse, an alternative Ethereum implementation, chain ID 2 2: Morden, the public Ethereum testnet, now Ethereum Classic testnet 3: Ropsten, the public cross-client Ethereum testnet 4: Rinkeby, the public Geth PoA testnet 8: Ubiq, the public Gubiq main network with flux difficulty chain ID 8 42: Kovan, the public Parity PoA testnet 77: Sokol, the public POA Network testnet 99: Core, the public POA Network main network 7762959: Musicoin, the music blockchain 61717561: Aquachain, ASIC resistant chain
但不确定是否正确?主网呢?
谢谢你的所有回答
解决方案
推荐阅读
- node.js - util.promisify node js的正确使用
- python - Python:一次多次 Ping URL 以进行测试
- python - 如何使用python解析xml后创建csv文件
- angular - 出现输入框,但点击后什么也没有
- javascript - 跨 Karma 单元测试和 Protractor 端到端测试共享的测试库
- excel - 条件格式 - if 和语句
- php - 我在这个文件中有 index.php 当我尝试用 css 设置样式时有 html 没有影响
- r - Rstudio 不会在断点处停止
- excel - 搜索 DAX 公式 - 相当于 Excel SUMIF
- jquery - jquery:在滚动时更改 css