-

@ f03df3d4:a4d4f676
2025-02-23 18:45:05
Block 885012
13 - high priority
12 - medium priority
11 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ 6abc092d:3623e3ce
2025-02-23 18:41:29
multithreaded code
//
import hashlib
import matplotlib.pyplot as plt
import numpy as np
from multiprocessing import Pool, cpu_count
hash_ints = []
def sha256_binary(input_bytes):
sha256_hash = hashlib.sha256()
sha256_hash.update(input_bytes)
return sha256_hash.digest()
def calculate_probability_sums(i):
print("calc sum", i)
mask = 1 << i
return np.sum((hash_ints & mask) // mask)
def main():
global hash_ints
avg = [0] * 256
totalsum = 0
iterations = 20000000#*(10**6)
for j in range(1, iterations + 1):
input_bytes = j.to_bytes((j.bit_length() + 7) // 8, byteorder='big')
hash_result = sha256_binary(input_bytes)
hash_int = int.from_bytes(hash_result, byteorder='big')
hash_ints.append(hash_int)
print(j)
hash_ints = np.array(hash_ints)
num_processes = cpu_count()
with Pool(processes=num_processes) as pool:
probability_sums = pool.map(calculate_probability_sums, range(256))
'''
probability_sums = np.zeros(256, dtype=int)
for i in range(256):
print("calc sum", i)
mask = 1 << i
probability_sums[i] = np.sum((hash_ints & mask) // mask)
'''
print("probability_sums", probability_sums)
for idx, v in enumerate(probability_sums):
avg[idx] = probability_sums[idx] / j
totalsum += avg[idx]
totalavg = totalsum / 256
for idx, value in enumerate(avg):
plt.plot(idx, value, linestyle="", marker='.', markersize=5)
plt.text(idx, value, str(idx), fontsize=2)
plt.title(f'Bit Averages (iterations {j}, total avg: {str(totalavg)[:9]})')
plt.xlabel('bit index')
plt.ylabel('Probability')
plt.savefig('plot-avg.png', dpi=600)
main()
-

@ e07773a9:4a98108a
2025-02-23 18:41:17
Fresh shiitake are amazing in a sauce for steak if you can get them!
-

@ e7bf8dad:839ef3db
2025-02-23 18:40:06
Block 885011
13 - high priority
13 - medium priority
12 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ f03df3d4:a4d4f676
2025-02-23 18:40:06
Block 885011
13 - high priority
13 - medium priority
12 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ a047a37c:dfcb432c
2025-02-23 18:37:18
Fuck fuck fuck.
Now I have to hope and pray that I didn't lose my funds?!?
-

@ 6c18f5bc:f6481f2d
2025-02-23 18:36:59
Keep it up, #nostr!
#grownostr
https://gostrtest.b-cdn.net/eb4445d00974185d3e119768a12099e186e87f3b55adfe518bc39eb97d47e07e.jpeg
-

@ f03df3d4:a4d4f676
2025-02-23 18:35:05
Block 885011
13 - high priority
13 - medium priority
12 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool
-

@ 1742a672:b8e30e07
2025-02-23 18:31:53
Last 7 days zaps: 420244.
https://nostroz.com/zap_stats_7_new_20250223.png
Last 30 days zaps: 554069.
https://nostroz.com/zap_stats_30_new_20250223.png
Last 90 days zaps: 2080129.
https://nostroz.com/zap_stats_90_new_20250223.png
2025-02-23
-

@ 6e468422:15deee93
2025-02-23 18:31:40
Is there a nip draft for social recovery already? Someone working on it? #asknostr
-

@ 83d6fc29:171335a1
2025-02-23 18:31:12
😂😂😂
-

@ e7bf8dad:839ef3db
2025-02-23 18:30:06
Block 885010
13 - high priority
13 - medium priority
12 - low priority
6 - no priority
3 - purging
#bitcoinfees #mempool