Title: if successful block mine from python || how to coinbase send my reward Post by: cixegz on February 23, 2023, 06:35:36 AM @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 Title: Re: if successful block mine from python || how to coinbase send my reward Post by: mocacinno on February 23, 2023, 06:59:34 AM 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. |