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

Fixed sidechain-manipulation print bug when there are 0 confirmations #98

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion contrib/sidechain-manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def __init__(self, value):
prev_script = prev_out["scriptPubKey"]["asm"].split(" ")
assert(prev_script[10] == "OP_NOP3")
if "confirmations" not in prev_tx or prev_tx["confirmations"] < int(prev_script[9]):
print("You must wait for at least %s confirmations to claim this output (have %d)" % (prev_script[9], prev_tx["confirmations"]))
print("You must wait for at least %s confirmations to claim this output (have %d)" % (prev_script[9], prev_tx.get("confirmations", 0)))
exit(1)

p2sh_res = sidechain.createmultisig(1, [args.sidechainAddress])
Expand Down