neither am I
, I edited my post above, it would be easier to add a signature/message to the coinbase like pools do, then check if the block have my signature, what do you think ? could you drop a code that achieve that ?
I think I can do that. I will get back to you in a few minutes
Excellent, thank you.
Sorry, but it looks like I can't do it. Bitcoin's CScript is a lot harder to deal with than I thought and my C++ just isn't good enough to do this. I do know how the whole process would go though.
You would need to get the bytes of the script and the bytes of the string you expect to find. Then compare the two byte arrays and see if the script bytes contains the string bytes. If they do, then the block is good, otherwise, it is bad.