Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ethereum energy consumption page #3650

Merged
merged 25 commits into from
Dec 14, 2021
Merged

Add Ethereum energy consumption page #3650

merged 25 commits into from
Dec 14, 2021

Conversation

jmcook1186
Copy link
Contributor

@jmcook1186 jmcook1186 commented Aug 18, 2021

Hello,

hope it is OK that I had a bash at this.

Description

This PR includes a draft page on ethereum energy consumption for review and refinement as per Issue 3020. I pulled info from the NFT page as suggested in the notes there as well as the blog by Carl Beek as suggested in the issue conversation thread.

Thanks!

Related Issue

#3020 #3072

Copy link
Contributor

@minimalsm minimalsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jmcook1186 - spoke to in DMs but to re-iterate this is a really strong start ✌️ I've left some comments for suggested changes.

One change that we'll have to make before publishing this is removing references to 'Eth2' as the term is being deprecated. (but we can iterate on this)


# Introduction to Ethereum's Energy Consumption {#introduction-to-ethereum-energy-consumption}

Since inception, sustainability has been a core value for Ethereum. However, until recently sustainability has sat uncomfortably alongside two other core values: security and scaleability. This page will explain why building out Ethereum to its current state has required a significant upfront carbon cost and why Ethereum is now on the cusp of becoming a truly low-carbon blockchain without undermining its other core principles.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since inception, sustainability has been a core value for Ethereum.

I don't think we should be making generalised statements like this. PoS was always in the plan but calling sustainability a core value seems inaccurate.

Suggested change
Since inception, sustainability has been a core value for Ethereum. However, until recently sustainability has sat uncomfortably alongside two other core values: security and scaleability. This page will explain why building out Ethereum to its current state has required a significant upfront carbon cost and why Ethereum is now on the cusp of becoming a truly low-carbon blockchain without undermining its other core principles.
Since inception, sustainability has been a core value for Ethereum. However, until recently sustainability has sat uncomfortably alongside two other core values: security and scalability. This page will explain why building out Ethereum to its current state has required a significant upfront carbon cost and why Ethereum is now on the cusp of becoming a truly low-carbon blockchain without undermining its other core principles.

Comment on lines 12 to 18
## Energy secures the network {energy-secures-the-network}

Transactions on the Ethereum blockchain are validated by miners. Miners are node operators who bundle together transactions from the mempool into ordered blocks, which are added to the Ethereum blockchain. The new blocks are broadcast to all the other node operators who run the transactions independently and verify that the checksum generated by the miner proposing the block agrees with their own. Since the checksum is generated based on the entire history of the chain, any dishonesty shows up as an inconsistency in the checksums generated by different nodes. Assuming the checksums are verified, the block is added to the blockchain on every node. If the checksums do not match up, the blockchain forks, and after a few blocks the valid branch is assumed to be the one with the longest valid chain.

This only works if there is a cost associated with minign and some unpredictability about which specific node submits the next block. These conditions are met by imposing proof-of-work (PoW). To be eligible to submit a block of transactions a miner must solve an arbitrary computational puzzle faster than any other miner. This creates competition between miners and cost in the form of energy expenditure. In order to successfully defraud the blockchain, a dishonest node operator would have to consistently win the race to solve the PoW puzzle which is both very unlikely and prohibitively expensive. PoW is therefore a way to secure the network. By requiring proof of computational work, PoW underpins the longest-chain consensus mechanism that ensures validity of the blockchain.

Ethereum has implemented the PoW protocol since its inception. While migration away from PoW has always been a fundamental goal of Ethereum, it has also arguably been the most philosophically and technologically challenging because the viable alternatives all required some compromise in one of Ethereum's core principles.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good but should be tackled from a slightly higher level. Seems like it intends to be directed to beginners but them makes assumptions about mempools and blocks. For learn pages, where possible, I'd lean towards not getting into the technicals too much.


## PoS energy expenditure

As well as building confidence in the PoS mechanism, the Beacon Chain also enables estimates of Ethereum's post-merge energy usage. A recent [blog post on this site](https://blog.ethereum.org/2021/05/18/country-power-no-more/) suggested that the merge to PoS could result in a 99.95% reduction in total energy use, with PoS being ~2000x more efficient than PoS. The energy-expenditure of Ethereum will be roughly equal to the cost of running a home computer for each node on the network, estimated to be about 5,250,000kWh per year for a network of 10,000 nodes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Over time, this prices miners out of the market, tending towards centralisation

  • Not sure we can/should make the PoS is more/less centralised than PoW argument...
  • Don't think the focus on this matters on this page

We can use this data to compare Eth2 to a global service like Visa. 100,000 Visa transactions uses 149kWh of energy<sup>[^2]</sup>. In Eth2, that same number of transactions would cost 17.4kWh of energy or ~11% of the total energy<sup>[^3]</sup>. That's without considering the many optimisations being worked on in parallel to Eth2, like [rollups](/glossary/#rollups). It could be as little as 0.1666666667kWh of energy for 100,000 transactions.

It's estimated that Eth2 will allow the network to process between 25,000 and [100,000 transactions per second](https://twitter.com/VitalikButerin/status/1312905884549300224?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1312905886327664640%7Ctwgr%5E%7Ctwcon%5Es2_&ref_url=https%3A%2F%2Fwww.coinspeaker.com%2Fvitalik-buterin-ethereum-layer-2%2F), with [100,000 as the theoretical maximum right now](https://ethereum-magicians.org/t/a-rollup-centric-ethereum-roadmap/4698).
At the bare minimum, Eth2 will allow 64 times the amount of transactions as today which sits at around 15 transactions. That's the amount of shard chains (extra data and capacity) being introduced ([More on shard chains](/eth2/shard-chains/)). That means we can conservatively estimate how long it will take to process 100,000 transactions so we can compare it to the Visa example above.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
At the bare minimum, Eth2 will allow 64 times the amount of transactions as today which sits at around 15 transactions. That's the amount of shard chains (extra data and capacity) being introduced ([More on shard chains](/eth2/shard-chains/)). That means we can conservatively estimate how long it will take to process 100,000 transactions so we can compare it to the Visa example above.
At a minimum, Eth2 will allow 64 times the amount of transactions as today which sits at around 15 transactions. That's the number of [shard chains](/eth2/shard-chains/) (extra data and capacity) being introduced. That means we can conservatively estimate how long it will take to process 100,000 transactions so we can compare it to the Visa example above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also: we should probably be explaining that shared chains allow this growth (not anything else in the eth2 updates) especially because we're moving away from the ETH2 branding


_It’s also important to remember that Ethereum does more than just financial transactions, it’s a platform for applications, so a fairer comparison might be to many companies/industries including Visa, AWS and more!_

## Criticism
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Criticism

I don't think the centralisation argument is all that relevant to a user who wants to know about how much energy Ethereum uses. I'd probably lean towards dropping this whole section.


## The merge

There is now a functional PoS blockchain called the [Beacon Chain]("https://ethereum.org/en/eth2/beacon-chain/") that has been running since December 2020 that is demonstrating the viability of the PoS protocol. Now that the ["London Upgrade"](https://ethereum.org/en/history/#london) has been successfully implemented, the switch from PoW to Pos (known as "the merge") is the next major update coming to Ethereum with a target date of late 2021 - early 2022. The merge to PoS will also bring associated efficiency gains through "sharding" the blockchain into sub-chains and accelerating the adoption of "roll-ups" (collections of transactions settled cheaply off-chain then pushed to the Ethereum blockchain as a single batch transaction).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as been successfully implemented, the switch from PoW to Pos (known as "the merge") is the next major update coming to Ethereum with a target date of late 2021 - early 2022.

Altair is before the Merge

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The merge to PoS will also bring associated efficiency gains through "sharding" the blockchain into sub-chains

The merge will happen before shard chains now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accelerating the adoption of "roll-ups"

Not sure what you mean by this. I don't see the merge and roll ups as being linked?

@jmcook1186
Copy link
Contributor Author

Ok, I amended the page according to the review comments - agree with everything, of course.

Also noticed that the calculations of energy consumption per 100k transactions that were inherited from the previous version of the page assumed 10k validators which seems to me to be over an order of magnitude too low. I updated them assuming 200k validators, which i think gives a conservative estimate. Also rewrote this section to make it (hopefully) more readable.

Thanks!

@minimalsm
Copy link
Contributor

Hey @jmcook1186 made some more edits.

FYI I've suggested the edits above (You can just click 'Commit suggestion' if you agree with the changes) - we recently released a style guide where we decided to use proof-of-work over PoW consistently to reduce user cognitive load (i.e. they don't have to remember recently learned terms).

@jmcook1186
Copy link
Contributor Author

Hi, agree with all edits - thanks!

@minimalsm
Copy link
Contributor

Waiting on another team member to review (early next week?)

sidebar: true
---

Ethereum's current energy expenditure is too high and unsustainable. Resolving energy expenditure concerns without sacrificing security and decentralization has been a significant technical challenge for Ethereum's development. Let's explore why building Ethereum has had a high environmental impact and how upcoming network upgrades will dramatically change this.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ethereum's current energy expenditure is too high and unsustainable.

Agree with the sentiment here but I'm not sure leading this page with a subjective statement is the right approach. It's "too high" - according to who? It's "unsustainable" - is it? Smells like someones opinion.

I'd suggest focusing more on factual statements. e.g. "Ethereum's current energy expenditure is significant - comparable to the power consumption of a small country". We could potentially link out to sources here (e.g. https://digiconomist.net/ethereum-energy-consumption/ though I'm not sure this is an authoritative source).

"Overall, Ethereum represents around 0.1% of global electricity" might be another useful stat for context:
https://kylemcdonald.github.io/ethereum-emissions/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree.

Maybe a more high-level critique about the intro and the order, I wish the article started with explaining the reduced energy impact under PoS and then went lightly into the temporary impact we have under PoW (sort of how Carl's article did). Our current situation is temporary after all ... it's kind of like we're burying the lead by putting the PoS information at the bottom.

I think a quick remedy could be putting a tl;dr that links to Carl's article at the top, something that says like:

TL;DR: Ethereum will use at least ~99.95% less energy with the transition to Proof of Stake. Read more [here](https://blog.ethereum.org/2021/05/18/country-power-no-more/).

Would be cool if that had it's own box to stand our, sort of like on the history page:

Screen Shot 2021-12-08 at 9 45 53 PM


_It's not entirely accurate to compare based on number of transactions as Ethereum's energy usage is time-based. The energy usage of Ethereum is the same in 1 minute regardless if it does 1 or 1,000 transactions._

_We must also consider that Ethereum isn't limited to simple financial transactions but is also a complete platform built for smart contracts and decentralized applications._
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we could merge this sentence into the one above, as a set of italicized disclaimers.

Copy link
Member

@samajammin samajammin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid work! Really appreciate this PR 💚

I've suggested some small tweaks & requested a few changes. A few more things in addition that perhaps @minimalsm we can quickly make after merging.

  • We should (probably?) add nav/footer links to this page
  • We need to add a breadcrumbs string
  • filename should be energy-consumption not energy_consumption to keep URLs consistent

Co-authored-by: Sam Richards <sbrichards@gmail.com>
Copy link
Contributor

@skylarweaver skylarweaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some thoughts

src/content/energy_consumption/index.md Outdated Show resolved Hide resolved
sidebar: true
---

Ethereum's current energy expenditure is too high and unsustainable. Resolving energy expenditure concerns without sacrificing security and decentralization has been a significant technical challenge for Ethereum's development. Let's explore why building Ethereum has had a high environmental impact and how upcoming network upgrades will dramatically change this.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree.

Maybe a more high-level critique about the intro and the order, I wish the article started with explaining the reduced energy impact under PoS and then went lightly into the temporary impact we have under PoW (sort of how Carl's article did). Our current situation is temporary after all ... it's kind of like we're burying the lead by putting the PoS information at the bottom.

I think a quick remedy could be putting a tl;dr that links to Carl's article at the top, something that says like:

TL;DR: Ethereum will use at least ~99.95% less energy with the transition to Proof of Stake. Read more [here](https://blog.ethereum.org/2021/05/18/country-power-no-more/).

Would be cool if that had it's own box to stand our, sort of like on the history page:

Screen Shot 2021-12-08 at 9 45 53 PM

@minimalsm
Copy link
Contributor

Hey @skylarweaver, thanks for putting eyes on this 💪 definitely agree a tl;dr could be helpful here. One thing we should consider before re-architecting the information here is that this page is generally aimed at non-technical beginners who might not know what proof-of-stake is. The trade-off of structuring it in this way is that the article lacks the initial punch that Carl's had.

In the interest of getting this out today and live (we've been sitting on it far too long) I'm going to merge this as is. I've created a card here to track your feedback and we'll try to iterate towards a happy medium here ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants