Skip to content

Commit

Permalink
add comments around magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
pstratem committed Jun 12, 2015
1 parent fffc591 commit 2319a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/sidechain-manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def __init__(self, value):
tx_hex = tx['hex']

total_length = len(tx_hex)/2
total_length += 14*32
total_length += 1000 # wild guess
total_length += 14*32 # maximum length of spv proof 1MB blocks
total_length += 1000 # len(full_contract) + len(secondScriptPubKey) and rounded up to 1000

if total_length >= 10000:
print("Transaction is too large.")
Expand Down

0 comments on commit 2319a2e

Please sign in to comment.