私有链如何加快挖矿的速度
发布于 2 个月前 作者 yuni2017 626 次浏览 来自 以太坊

创世区块的配置

{
    "config": {
        "chainId": 15,
        "homesteadBlock": 0,
        "eip155Block": 0,
        "eip158Block": 0
    },
    "difficulty": "20000",
    "gasLimit": "2100000000",
    "alloc": {}
}

难度值已经很小了。

每次挖矿的时候,就长时间执行Generating DAG,好慢

INFO [06-03|21:52:47] Generating DAG in progress               epoch=1 percentage=40 elapsed=20m8.663s
INFO [06-03|21:53:06] Generating DAG in progress               epoch=1 percentage=41 elapsed=20m27.941s
INFO [06-03|21:53:27] Generating DAG in progress               epoch=1 percentage=42 elapsed=20m48.405s
INFO [06-03|21:53:48] Generating DAG in progress               epoch=1 percentage=43 elapsed=21m9.662s
INFO [06-03|21:54:11] Generating DAG in progress               epoch=1 percentage=44 elapsed=21m32.690s
INFO [06-03|21:54:37] Generating DAG in progress               epoch=1 percentage=45 elapsed=21m58.926s
INFO [06-03|21:55:04] Generating DAG in progress               epoch=1 percentage=46 elapsed=22m25.827s
INFO [06-03|21:55:33] Generating DAG in progress               epoch=1 percentage=47 elapsed=22m54.853s
INFO [06-03|21:56:00] Generating DAG in progress               epoch=1 percentage=48 elapsed=23m21.823s
INFO [06-03|21:56:23] Generating DAG in progress               epoch=1 percentage=49 elapsed=23m44.800s
INFO [06-03|21:56:51] Generating DAG in progress               epoch=1 percentage=50 elapsed=24m12.159s
INFO [06-03|21:57:18] Generating DAG in progress               epoch=1 percentage=51 elapsed=24m39.822s
INFO [06-03|21:57:42] Generating DAG in progress               epoch=1 percentage=52 elapsed=25m3.522s
INFO [06-03|21:58:06] Generating DAG in progress               epoch=1 percentage=53 elapsed=25m27.373s
INFO [06-03|21:58:30] Generating DAG in progress               epoch=1 percentage=54 elapsed=25m51.656s
INFO [06-03|21:58:53] Generating DAG in progress               epoch=1 percentage=55 elapsed=26m14.613s
INFO [06-03|21:59:14] Generating DAG in progress               epoch=1 percentage=56 elapsed=26m35.425s
INFO [06-03|21:59:33] Generating DAG in progress               epoch=1 percentage=57 elapsed=26m54.387s
INFO [06-03|21:59:55] Generating DAG in progress               epoch=1 percentage=58 elapsed=27m16.508s
INFO [06-03|22:00:17] Generating DAG in progress               epoch=1 percentage=59 elapsed=27m38.483s
INFO [06-03|22:00:35] Generating DAG in progress               epoch=1 percentage=60 elapsed=27m56.528s

请问,如何加快Generating DAG的速度

5 回复

请问Generating DAG是什么呀?

挖矿一开始都要生成DAG,从生成的DAG里面找随机数做hash,生成之后就正常挖矿了,每个epoch更新一次DAG(好像是30000个区块一个epoch)

eth搭私链的话,推荐POA,稳定出块,可设置时间间隔。

@maiiz POA只有Parity客户端才支持把,geth客户端貌似不支持POA

@yuni2017 geth支持POA,https://hackernoon.com/setup-your-own-private-proof-of-authority-ethereum-network-with-geth-9a0a3750cda8 可以试试quorum,对以太坊基础上上做修改,以太坊版的联盟链

回到顶部