Author

Topic: if successful block mine from python || how to coinbase send my reward (Read 87 times)

legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
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.
newbie
Activity: 13
Merit: 0
@MagicByt3 your topic https://bitcointalksearch.org/topic/python-mining-process-visual-mining-learning-community-updated-5440240
@irsada   your topic     https://bitcointalksearch.org/topic/python-based-solo-miner-for-cpu-learn-basic-bitcoin-mining-just-for-fun-5439273

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
Jump to: