#Bitcoin #Zap #Bitcoiners #BTC #Bitcoiner #Zaps #plebchain #coffeechain #nostr #zapathon #bitcoinnews #lol #gronostr #GM #PV #GoodMorning #news #stuff

Bitcoiner News

4 Catalysts have emerged this week, setting records for Bitcoin.

1. Global Bitcoin transactions in 2024 exceeded the heights of the 2021 bull market.

2. The stablecoin market has surged to $170 billion, typically indicating future buying pressure for Bitcoin.

3. At block height 860,832, Bitcoin mining difficulty surged 3.6%, reaching an ATH of 92.7 trillion.

4. Miners have been ramping up their hash rate, leading to a new all-time high hash rate of 694 EH/s.

Reply to this note

Please Login to reply.

Discussion

what are the units of 92.7 million? difficulty measured in what?

It's a mathematically derived numeric value. It's derived by dividing the maximum possible target value by the target for the current block.

Here is the code of the math behind it from source code.

#include

#include

inline float fast_log(float val)

{

int * const exp_ptr = reinterpret_cast (&val);

int x = *exp_ptr;

const int log_2 = ((x >> 23) & 255) - 128;

x &= ~(255 << 23);

x += 127 << 23;

*exp_ptr = x;

val = ((-1.0f/3) * val + 2) * val - 2.0f/3;

return ((val + log_2) * 0.69314718f);

}

float difficulty(unsigned int bits)

{

static double max_body = fast_log(0x00ffff), scaland = fast_log(256);

return exp(max_body - fast_log(bits & 0x00ffffff) + scaland * (0x1d - ((bits & 0xff000000) >> 24)));

}

int main()

{

std::cout << difficulty(0x1b0404cb) << std::endl;

return 0;

}

My brother in code, this is epic. So great that this community can answer in very specific terms. Thank you. I learned something new today.

You are so very welcome. That's what attracted me to Bitcoin. I can learn something the rest of my life. Have a good one bro!

Thank you! 👍 🙏