Skip to content

Commit

Permalink
Merge pull request #23 from lorenzb/detect_invalid_vrs
Browse files Browse the repository at this point in the history
Fix detection of "Invalid VRS" error
  • Loading branch information
Stephane Gosselin authored Sep 22, 2018
2 parents b0192b2 + 91f2151 commit 45a86e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate_commitment/generate_submarine_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def _generateAddressBInternal(addressA,
addressB = tx.to_dict().get("sender")
return tx, addressB, commit, randw

except InvalidTransaction as e:
except (ValueError, InvalidTransaction) as e:
if isinstance(e, ValueError) and "VRS" not in str(e):
raise
log.info("Address no good (%s), retrying" % e)
return _generateAddressBInternal(addressA, addressC, sendAmount,
dappData, gasPrice, gasLimit, nonce,
Expand Down

0 comments on commit 45a86e5

Please sign in to comment.