Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
rukkamind
on 29/07/2024, 13:31:36 UTC
My bot found the key and I send 3 Transactions all accepted by mempool, but they weren't mined.

Hello everybody. In 2019, I create my firt btc_miner, in python and C and bitcoincore (personal project).
With my RTX-3080 i got 1.3 Hhash/s not bad
some code to select transactions in pool.
Code:
try:
      pc_connection = AuthServiceProxy(serverURL)
      mempool = rpc_connection.getrawmempool(True)
      alltxs = [(txid, tx['fees'], tx['unbroadcast'],tx['bip125-replaceable']) for txid, tx in mempool.items()]
      alltxs_sorted = sorted(alltxs, key=lambda x: x[1]['modified'], reverse=False)

except Exception as e:
time.sleep(10)
continue

# how many transactions i want (random)
nx = random.randint(3000, 5000)
tokens = alltxs_sorted[:nx]

txhashes = []
txs_hex  = []

# fees
fees = 0
ntx1  = 0
pos_tx  = 0

for txs in tokens:
pos_tx += 1
tx_hash = txs[0]
brod = txs[2]
taxa = txs[1]['modified']
repl = txs[3]
if brod == False:
try:
raw_tx = rpc_connection.getrawtransaction(tx_hash)
if repl == False and ntx1 < 4500:
    ....

I decide in my code 250~500 transactions with better fees and  ~2500 with small fees and get ~4000transactions and try mine block. I think lucky your transaction faill