Bitcoin Forum
May 01, 2024, 05:35:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: if successful block mine from python || how to coinbase send my reward  (Read 64 times)
cixegz (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
February 23, 2023, 06:35:36 AM
Last edit: February 23, 2023, 07:05:45 AM by cixegz
 #1

@MagicByt3 your topic https://bitcointalk.org/index.php?topic=5440240.0
@irsada   your topic     https://bitcointalk.org/index.php?topic=5439273.0

my question is
if successful block mine using btc_mine_python_code ,how to coinbase send my reward ### simple python code coinbase send my reward
explain me particular line coinbase send my reward

if you don t understand my question simple,i am asking for i need coinbase send my reward in python code

any one explain simple math coinbase generator my reward
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
mocacinno
Legendary
*
Offline Offline

Activity: 3374
Merit: 4919


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
February 23, 2023, 06:59:34 AM
Merited by Welsh (3), ABCbits (1)
 #2

I'm not MagicByt3, but i quickly scanned his code.

With this script, you're mining on a solo mining pool...

Here you connect to the pool:
Code:
sock.connect(('solo.ckpool.org' , 3333))


here you seem to send your address to the pool, so they can pay you if you hit a block:
Code:
sock.sendall(b'{"params": ["' + address.encode() + b'", "password"], "id": 2, "method": "mining.authorize"}\n')

and here you seem to send a payload if the hash is smaller than the target (wich is basically solving a block in a solo mining pool:
Code:
sock.sendall(payload)

Once for complete clarity: i'm not MagicByt3, i just took a 5 minute look at the code he posted and it seemed quite logical and straightforeward... There's a small chance i made a mistake since this is the result from a very quick glance at his code.

Also, you have to realise that code like this is a POC (proof of concept). It's a learning tool to teach people how mining works... Do NOT use such code to actually mine... The hashrate is sooooo low, and the power and hardware consumption sooooo high that your odds of making a profit are so close to 0 that in reality you can call them 0.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!