返回介绍

Private Development Chain

发布于 2023-06-28 21:14:13 字数 1402 浏览 0 评论 0 收藏 0

OpenEthereum supports a dev mode that is particularly useful for Dapp development and demos. Thanks to its Instant seal consensus engine, transactions are “mined” instantly. No need to wait for the next block.

Run a development chain using:

openethereum --config dev

The created chain is initialized with an address that contains a lot of Ether - 0x00a329c0648769a73afac7f9381e08fb43dbea72. Its private key is 0x4d5db4107d237df6a3d58ee5f70ae63d73d7658d4026f2eefd2f204c81682cb7.

Customizing the development chain

The default configuration should work fine in most cases. However, it can be customised. You can see the chain specification for the dev network in the source repository. You can make a copy locally, modify it and pass it to the --chain option. The last section of the file under accounts can be modified to add more accounts with lots of Ether. See the Chain specification documentation for more details.

To make multiple transactions confirm at the same time use --reseal-min-period 0 and to make transactions free use --gasprice 0.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文