Skip to content
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

Be more verbose in blocksign to indicate which funcs are working #9

Merged
merged 1 commit into from
Jun 9, 2015
Merged
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
5 changes: 4 additions & 1 deletion contrib/fedpeg/blocksign.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def recv_master_msg(self, msg):
def round_done(self, peer_messages):
mysig = sidechain.signblock(self.round_local_block_hex)
peer_messages.append(("self", mysig))
sys.stdout.write("Got signatures from %s, now combining..." % str([x[0] for x in peer_messages]))
sys.stdout.write("Got signatures from %s, now combining..." % str([x[0] for x in peer_messages if x[1][0] == "0" and x[1][1] == "0" and len(x[1]) == 132]))
sys.stdout.flush()
res = sidechain.combineblocksigs(self.round_local_block_hex, [x[1] for x in peer_messages])
if res["complete"]:
Expand All @@ -44,6 +44,9 @@ def round_done(self, peer_messages):
print("done")
else:
print("got incomplete block")
for x in peer_messages:
if x[1][2:] not in res["hex"]:
print("Signature from %s was probably useless" % x[0])

def round_failed(self):
self.round_local_block_hex = ""
Expand Down