Giter Site home page Giter Site logo

Comments (8)

tdickman avatar tdickman commented on June 7, 2024 2

And some stats on the sources of these mining rewards:

Ethereum (31st)

Bitcoin (31st)

This means Ethereum's mining rewards exceeded Bitcoin's on the 31st, which is.. interesting. Fees are driving a lot of the Ethereum reward right now, likely due to the subsidized activity that is occurring in defi. This implies that this level of reward won't necessarily be sustained long term.

from howmanyconfs.com.

lukechilds avatar lukechilds commented on June 7, 2024

That's an error, Ethereum does definitely not have more hashrate than Bitcoin at the moment.

I'm using the NiceHsh API to calculate hashrate costs. NiceHash have probably made a breaking change to their API and changed the units they're returning or something which is causing incorrect results. (this has happened before)

Unfortunately I don't have time to look into this right now, I'm very busy on something else that's higher priority, but will try to resolve the issue as soon as I'm able to.

In the meantime if anyone wants to take a look at this and submit a PR to resolve the issue I'd really appreciate it.

$50 BTC tip for anyone who submits a working PR that passes a code review.

from howmanyconfs.com.

lukechilds avatar lukechilds commented on June 7, 2024

Same issue on crypto51.app which is using the same APIs as us, reported the issue to them here: tdickman/crypto51#59

from howmanyconfs.com.

lukechilds avatar lukechilds commented on June 7, 2024

Ok the numbers were off by a factor of 10 so I've pushed a really dirty hacky fix that does the job for now so the website isn't showing incorrect information: a7e5f9f

diff --git a/api/nicehash.js b/api/nicehash.js
index 7f94887..12390cc 100644
--- a/api/nicehash.js
+++ b/api/nicehash.js
@@ -29,6 +29,13 @@ const getNiceHashData = async () => {
 			const values = currentValues.algos.find(algo => algo.a === algorithm.id);
 			const pricePerHashPerDay = values.p / 100000000;
 			algorithm.pricePerHashPerSecond = pricePerHashPerDay / DAYS;
+			// TODO: Fix this properly.
+			// These calcs seem to be off by a factor of 10 for ETH/DaggerHashimoto.
+			// No idea why and no time to look into it right now but this dirty hack
+			// appears to be generating correct values for now.
+			if (algorithm.name === 'DaggerHashimoto') {
+				algorithm.pricePerHashPerSecond /= 10;
+			}
 			algorithm.hashrate = values.s;
 
 			algorithm.priceReadable = (pricePerHashPerDay * marketFa

This still needs to be fixed properly though.

from howmanyconfs.com.

tdickman avatar tdickman commented on June 7, 2024

@lukechilds I'm getting the same numbers that I see on crypto51.app when manually calculating using the data from here under DaggerHashimoto.

Figures as of now (2020-09-01) for Ethereum mining, rental costs are:

This gives us a cost of 218 * 7.3954 * 11900 / 24 = $799,381 / hr

Some rough calculations for the rewards earned (since this drives the amount of mining power thrown at each network):

The total ethereum mining reward was 32681 ETH / day == $14.4M / 24 == $600k / hr in reward on the 31st. Note: The 31st saw especially high fees, which drove this. I see a min of ~400k over the past few days in mining reward for any given day.

The total bitcoin mining reward was $12.0M / day == $500k / hr in reward on the 31st.

from howmanyconfs.com.

lukechilds avatar lukechilds commented on June 7, 2024

Oh wow, that's insane!

Yeah that makes sense then. So it's just the fees that are mooning, not the hashrate.

I'm using $ price per second of total coin hashrate on NiceHash to get a very rough approximation of energy per second utilised by PoW. And then using this as an interoperable metric across chains to compare PoW strength.

But clearly this completely breaks down in crazy short term high-fee bursts such as this. Mining profitability moons, so hashrate cost on NiceHash moons, so my calculations show PoW strength mooning when in reality, the high fee environment would have to persist for a while to have a knock on effect on PoW strength.

I'll revert my patch then since the current values are "correct". Guess I need to think of a more reliable method to calculate a cross comparable PoW metric.

Maybe if I can find the average energy usage and average hashrate of the popular ASICs for all the different mining algorithms I can come up with an average watt/hash figure for each algo. Then I can calculate each chains PoW strength with algo_hashrate * algo_watt_per_hash.

from howmanyconfs.com.

tdickman avatar tdickman commented on June 7, 2024

Yeah, it's definitely insane. Short terms bursts like this just mean additional profitability for miners, and likely only result in additional hardware being purchased if this is sustained for several months.

from howmanyconfs.com.

lukechilds avatar lukechilds commented on June 7, 2024

Ok, I've reverted my patch: 2e219d0

Thanks for your input @tdickman!

Closing this issues since the calculations are working correctly. I just need to have a think about how I can take a different approach in the approximations so they don't get so distorted by high-fee bursts.

And thanks for reporting @BitcoinLabrador.

from howmanyconfs.com.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.