Your answer did the job and I highly appreciate your response. Thank you 💜

The gossip client pow settings text is a bit misleading IMO.

1.) Example

settings - 7 leading zeros

hex - 1 leading zero

01bf1064b32623d341add2a633bee3a50b72f0eb5dd105c1b95650fc825ef25e

2.) Example

settings - 16 leading zeros

hex - 4 leading zeros

0000c2f7d46860cd8376e6690021f96a0cebb2bf0856e4bd2b8070935dc2d2dc

Can this be a little less confusing @Michael Dilger I suggest replacing the words *leading zeros* with *bits* and maybe adding an additional field after, that will show the number of leading zeros like the below example.

Reply to this note

Please Login to reply.

Discussion

You're very welcome!

Yes, but my opinion is even more radical. I think showing "difficulty" (whether it's number of leading zero bits, number of leading '0's in hex, or number of leading 'q's in bech32) is not ideal since something with 10 zeroes looks half as hard to generate something with 20 zeroes (or '0's or 'q's) when, in fact, it is 1,000 times easier to generate 10 zeroes.

On https://powrelay.xyz/explore I show the number of hashes needed (on average) to generate an event with that many zeroes. An event with 10 leading zeroes needs 2**10 = 1_024 hashes and one with 20 leading zeroes needs 2**20 = 1_048_576 hashes (on average).

I actually find out about note id pow-ing on your website :)

...but isn't the number of hashes per byte dependent on the specific hardware being used and its processing power?

The number of hashes per byte might not be the same on raspberry pi and on a powerful Ryzen computer when doing pow IMO 🤔

Nope, it'll always be same no matter what the hardware is. It's just (2**number_of_leading_zero_bits) / number_of_bytes

Oh my bad 🙈 Till now I always had hashes/sec in mind. Silly me 🤦

Michael responded to my pull request and said the following

"*A pow of 7 gives you 7 leading zeros. In binary. I will rename it to "leading zero bits*"

🔥🔥🔥

Yeah, the Ryzen was designed for PoW/AI from my knoweldge.

Raspberry Pi 4 was designed as a super low power personal computer. Decent at everything. Not a master of anything.

So to say.