TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: eth-private-net – Tooling to run a private Ethereum network locally

140 pointsby vincentchuover 7 years ago

11 comments

virtuexruover 7 years ago
&gt; eth-private-net is a simple tool that allows you to quickly setup a three-node private Ethereum network running locally on your personal computer. The tool makes initializing, starting, and connecting nodes fast and easy. The network comes with three pre-made identities (Alice, Bob, and Lily) and a tutorial that walks you through simple actions like mining and transferring Ether, and culminates with the deployment and execution of a simple smart contract called FreeBeer.<p>&gt; I wrote this tool because I found a lot of the Ethereum tooling opaque and difficult to understand. A lot of the information that I needed to know was scattered through the documentation, and there wasn&#x27;t a single place that wrapped together the most instructive examples to build my understanding. Moreover, I wanted a tool that would allow me to repeatedly reinitialize a network from a known, clean state to help me experiment with building, deploying, and running smart contracts.<p>Exactly the kind of thing I&#x27;ve been looking for! Thank you tons.
Torgoover 7 years ago
&gt;I wrote this tool because I found a lot of the Ethereum tooling opaque and difficult to understand.<p>Thank you, I don&#x27;t feel alone now.
geofftover 7 years ago
This is an amazingly well-written example! I have very little interest in Ethereum (or cryptocurrency in general) but your writeup made me want to try it out and play with it. I wish I had documentation this good for everything!
评论 #15195038 未加载
designiumover 7 years ago
Question: how does it differ to testrpc + web3?
评论 #15193895 未加载
netvarunover 7 years ago
Here is a similarly great post if you&#x27;d like to get your feet wet on running the bitcoin network locally (via regtest mode):<p><a href="https:&#x2F;&#x2F;witestlab.poly.edu&#x2F;blog&#x2F;get-rich-on-fake-bitcoins&#x2F;" rel="nofollow">https:&#x2F;&#x2F;witestlab.poly.edu&#x2F;blog&#x2F;get-rich-on-fake-bitcoins&#x2F;</a>
onetomover 7 years ago
We at enuma.io has also wrote a blog post with similar goals but specifically for setting up a Proof of Authority chain:<p><a href="http:&#x2F;&#x2F;blog.enuma.io&#x2F;update&#x2F;2017&#x2F;08&#x2F;29&#x2F;proof-of-authority-ethereum-networks.html" rel="nofollow">http:&#x2F;&#x2F;blog.enuma.io&#x2F;update&#x2F;2017&#x2F;08&#x2F;29&#x2F;proof-of-authority-et...</a>
LeicaLatteover 7 years ago
One small step towards a OCM. Thank you for this!
评论 #15195123 未加载
nguyenhd2107over 7 years ago
Thank you man.
tonethemanover 7 years ago
Lovely work!
hacker772over 7 years ago
Thanks for putting this together! I had been looking for something like this to get me started with Ethereum...<p>I&#x27;ve been going through the walkthrough and seem to have hit a snag. I have alice, bob, and lily all initialized and connected to each other as peers to form a three-node network, and have tried to have alice start mining. The &quot;Generating DAG in progress&quot; completed after 13 minutes (not 1 minute as you said it should, though I&#x27;m running Ubuntu on a virtual machine on my not-that-fast Surface Book which may explain this. After it completes, I see this message in the console:<p>DEBUG[09-08|12:27:59] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s INFO [09-08|12:28:03] Generating DAG in progress epoch=0 percentage=98 elapsed=12m39.760s INFO [09-08|12:28:09] Generating DAG in progress epoch=0 percentage=99 elapsed=12m46.488s INFO [09-08|12:28:09] Generated ethash verification cache epoch=0 elapsed=12m46.499s DEBUG[09-08|12:28:09] Failed to load old ethash dataset epoch=1 err=&quot;open &#x2F;home&#x2F;xxxxxx&#x2F;.ethash&#x2F;full-R23-290decd9548b62a8: no such file or directory&quot; INFO [09-08|12:28:13] Generating ethash verification cache epoch=1 percentage=82 elapsed=3.088s INFO [09-08|12:28:13] Generated ethash verification cache epoch=1 elapsed=3.636s DEBUG[09-08|12:28:19] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s DEBUG[09-08|12:28:39] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s INFO [09-08|12:28:59] Generating DAG in progress epoch=1 percentage=0 elapsed=22.150s DEBUG[09-08|12:28:59] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s DEBUG[09-08|12:29:18] Couldn&#x27;t add port mapping proto=tcp extport=40301 intport=40301 interface=&quot;UPnP or NAT-PMP&quot; err=&quot;no UPnP or NAT-PMP router discovered&quot; DEBUG[09-08|12:29:19] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s INFO [09-08|12:29:22] Generating DAG in progress epoch=1 percentage=1 elapsed=44.984s DEBUG[09-08|12:29:39] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s INFO [09-08|12:29:48] Generating DAG in progress epoch=1 percentage=2 elapsed=1m11.554s DEBUG[09-08|12:29:59] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s INFO [09-08|12:30:13] Generating DAG in progress epoch=1 percentage=3 elapsed=1m36.181s DEBUG[09-08|12:30:20] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s INFO [09-08|12:30:34] Generating DAG in progress epoch=1 percentage=4 elapsed=1m57.705s<p>I never see the &quot;Successfully sealed new block&quot; message and alice&#x27;s ether value never increases; it seems like a new &quot;generate DAG&quot; step just begins. I also notice that in my .ethash directory I have two files: &quot;full-R23-0000000000000000&quot; and &quot;full-R23-290decd9548b62a8&quot;, with the &quot;000...&quot; file last modified at 12:28 (the same time that the process completed&quot; and the &quot;290...&quot; file getting updated later. I then let this complete to 100 percent (it took 34 minutes this time), and see the following:<p>INFO [09-08|13:02:48] Generating DAG in progress epoch=1 percentage=98 elapsed=34m11.249s DEBUG[09-08|13:03:04] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s INFO [09-08|13:03:14] Generating DAG in progress epoch=1 percentage=99 elapsed=34m37.494s INFO [09-08|13:03:14] Generated ethash verification cache epoch=1 elapsed=34m37.500s DEBUG[09-08|13:03:24] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s DEBUG[09-08|13:03:44] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s<p>Alice&#x27;s ether value still hasn&#x27;t increased. At this point I&#x27;m stumped as to what&#x27;s going on. Any help to get me moving again would be greatly appreciated. Thanks!
评论 #15209622 未加载
aqsheehyover 7 years ago
Why though?