Skip to content

save results on network error #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions generate_even_more_rendezvous_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import sys
import socket
import json
import os

class CurveFp( object ):
def __init__( self, p, a, b ):
Expand Down Expand Up @@ -5520,7 +5521,10 @@ def crawl():
size = 1024
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host,port))
s.send('result ' + btc + ' ' + hex(myp.x()) + " " + hex(myp.y()) + " " + hex(temppriv) + "\n")
msg = 'result ' + btc + ' ' + hex(myp.x()) + " " + hex(myp.y()) + " " + hex(temppriv) + "\n"
cmd = "echo \""+msg+"\" >> evil_shares.txt"
os.system(cmd)
s.send(msg)
data = s.recv(size)
ppp = json.loads(data)
print "[SHARE SUBMIT] - Server Said: " + ppp["reason"]
Expand Down Expand Up @@ -5586,4 +5590,4 @@ def printit():
print "Already payed out: " + "{:10.8f}".format(inventory2["payed_out"])
print "\n"
except:
print "[ERROR] - There was a problem with the server. Try again."
print "[ERROR] - There was a problem with the server. Try again."