this post was submitted on 04 Dec 2023
199 points (100.0% liked)

Technology

37799 readers
163 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Overzeetop@beehaw.org 15 points 1 year ago (2 children)

You can't have a transaction without mining. Mining is the work done to solve a batch of transactions, so the exact cost of a transaction is easy to determine provided that you don't include the cost of plant (buildings and IT to run the miners, though this is usually very minor compared to the actual calculation consumption). Each block contains (typically) between 3000 and 4000 transactions and is solved every 10 minutes. As of today, it takes 2.6GWh to solve a block, given the current number of miners (137TWh/yr per https://digiconomist.net/bitcoin-energy-consumption), which is 744kWh per transaction at 3500 transactions per block.

The cost of a Visa transaction is more difficult because there are people involved and other plant costs (buildings to house the people who work for Visa). The actual cost to process a Visa transaction, in direct transactional power usage, is trivial because a Raspberry Pi can "process" hundreds of thousands of transactions a second locally - it's literally a couple hundred bytes of login/query/reply data, and adding or subtracting from a ledger which is mirrored to distributed servers. Distributed across a server with enough transactions to keep it busy it's probably a few hundred milliseconds on 1/8 of a 50W processor - call it 0.001Wh at the server, which is the equivalent of the 700kWh per bitcoin transaction. If we say that there are 10 machines all doing the same virtual transaction on each physical transaction (incl. POS, backup, billing, etc) and we figure a 5:1 cost of total power (a/c, losses, memory, storage) then we're all the way up to 0.00005kWh (0.05 Wh, or 180 watt-seconds) per transaction. That means that the overall cost for visa to process your charge is 1.5kWh/0.00005kWh for the computers or 30,000:1 due to humans being involved in the process.

Here's the thing, though: Bitcoin gets harder (more compute intensive) as time goes on, and the rate of increase is faster than the ability to solve, on a Wh basis. IE - Bitcoin transactions will get more expensive over time unless bitcoin changes their code - and there is always resistance to that because there is a financial disincentive to reduce the work in Proof of Work systems. This is mitigated on other blockchains by using Proof of Stake, but that has other implications. Visa, otoh, is taking advantage of AI and drops in processor and storage costs to lower their per-transaction cost because there is a financial incentive to reduce processing costs as the fees charged are fixed (nominally 3% of the transaction cost) and anything left over is profit.

[–] GenderNeutralBro@lemmy.sdf.org 5 points 1 year ago (3 children)

It seems I have fundamentally misunderstood how bitcoin mining works. Thanks for the correction.

I'm having a hard time wrapping my head around this. If the marginal energy cost of a transaction is 744kWh, shouldn't the transaction fees be astronomical?

[–] gus@beehaw.org 4 points 1 year ago

The reward for mining a block is over a quarter of a million dollars these days. $250k / 4k transactions = apx $62.50 per transaction. Around $8 is from the transaction fee from the sender, the other $54 is from the block reward minted out of thin air.

[–] EinfachUnersetzlich@lemm.ee 2 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah, at current electricity prices where I live that would be just under £300,000 per transaction. Doesn't seem right.

Edit: as pointed out, I was out by a factor of 100. Electricity costs 40p per kWh here.

[–] GenderNeutralBro@lemmy.sdf.org 4 points 1 year ago (1 children)

You sure you have the magnitude right on that? From a quick search, I think it should only be about £200 in e.g. London, with similar prices in big cities across the US. I thought those were relatively high prices to begin with.

[–] EinfachUnersetzlich@lemm.ee 1 points 1 year ago

You're right. It was late.

[–] conorab@lemmy.conorab.com 1 points 1 year ago

Unless I am mistaken, the total number the other comment is raising is how much power the entire network spent calculating the transaction, not how much the winner (the one who got paid out) spent. You calculate the energy consumption of the entire network because that power was still spent on the transaction even if the rest of the network wasn’t rewarded. I have no idea if the numbers presented are correct but the reasoning seems sensible. Maybe I’m wrong though. :)

[–] commie@lemmy.dbzer0.com 3 points 1 year ago (1 children)

Bitcoin transactions will get more expensive over time unless bitcoin changes their code

other events could precipitate a decrease in power used per bitcoin transaction.

[–] Overzeetop@beehaw.org 4 points 1 year ago (1 children)

Again, it would take a substantial change to the code or reality. The options are to change the block size (more transactions per block), alter the difficulty curve (which is intended to limit growth in the limited bitcoin supply), alter the way blocks are solved (massive theoretical mathematical breakthrough or, possibly, a move from asic to quantum computing), or switch away from proof of work. The first increases the storage of the blockchain (substantially for a substantial reduction), rewrite - and get approval - to change the difficulty steps which had been a hallmark of the system, the third is magical thinking, and the fourth completely undermines the egalitarian ethos of the coin.

I’ve heard of no substantive move on any front to alter the plan because, for now, it working. And the true believers are generally libertarians who have faith that market forces will correct any shortcomings organically. This usually results in everything working perfectly right up until it doesn’t, at which point the wheels come off and the bus slams into the class of kindergarteners crossing the road.

[–] commie@lemmy.dbzer0.com 2 points 1 year ago (1 children)

the network is self-adjusting. if hash power begins to decrease, the network will decrease difficulty to maintain the target of 10 minute block times. lots of things could lead to decreased hash power. the whole network could be run with a cleverly configured raspberry pi

[–] Overzeetop@beehaw.org 1 points 1 year ago

the whole network could be run with a cleverly configured raspberry pi

Which would defeat the entire purpose of a distributed blockchain. I'm ribbing you, of course, on that ;-) Bitcoin was not built for efficiency and the very basis of distributed proof of work trades efficiency for security. The more "successful" it gets, the larger the incentive to waste power in a fight to win each block reward becomes - by design.