I am making a bitcoin miner that I will make into an ios app for people to be able to mine. Right now it is in python, why is return not working? Here is the code.
It says syntax error with the arrow pointing toward the r in return but I indented right. How can I fix this? Thanks.
Code Block # proof-of-work test: hash < target if l < target: print(time.asctime(), "PROOF-OF-WORK found: %064x" % (l,) return (nonce + 1, nonce_bin) else: print time.asctime(), "PROOF-OF-WORK false positive %064x" % (l,) # return (nonce + 1, nonce_bin)
It says syntax error with the arrow pointing toward the r in return but I indented right. How can I fix this? Thanks.