开启以太坊虚拟挖矿命令


开启命令行

geth --http --http.corsdomain="*"  --nodiscover --allow-insecure-unlock  --datadir './test' console

创建新用户

personal.newAccount()

开始挖矿

> miner.start()
INFO [05-14|15:06:12.494] Updated mining threads                   threads=1
INFO [05-14|15:06:12.496] Transaction pool price threshold updated price=1,000,000,000
null
> INFO [05-14|15:06:12.497] Commit new sealing work                  number=1 sealhash=ea0c90..6f836f uncles=0 txs=0 gas=0 fees=0 elapsed="350.42μs"
INFO [05-14|15:06:12.498] Commit new sealing work                  number=1 sealhash=ea0c90..6f836f uncles=0 txs=0 gas=0 fees=0 elapsed="609.496μs"
INFO [05-14|15:06:18.792] Generating ethash verification cache     epoch=1 percentage=12 elapsed=4.226s
INFO [05-14|15:06:22.375] Generating ethash verification cache     epoch=1 percentage=20 elapsed=7.808s
INFO [05-14|15:06:25.769] Generating ethash verification cache     epoch=1 percentage=30 elapsed=11.202s
INFO [05-14|15:06:28.779] Generating ethash verification cache     epoch=1 percentage=39 elapsed=14.213s
INFO [05-14|15:06:32.379] Generating ethash verification cache     epoch=1 percentage=53 elapsed=17.812s
INFO [05-14|15:06:35.685] Generating ethash verification cache     epoch=1 percentage=66 elapsed=21.118s
INFO [05-14|15:06:39.590] Generating ethash verification cache     epoch=1 percentage=80 elapsed=25.023s
INFO [05-14|15:06:42.605] Generating ethash verification cache     epoch=1 percentage=89 elapsed=28.039s
INFO [05-14|15:06:45.801] Generating ethash verification cache     epoch=1 percentage=99 elapsed=31.235s
INFO [05-14|15:06:45.811] Generated ethash verification cache      epoch=1 elapsed=31.238s