mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
add comments around magic numbers
This commit is contained in:
parent
fffc59179f
commit
2319a2e6db
1 changed files with 2 additions and 2 deletions
|
|
@ -127,8 +127,8 @@ try:
|
|||
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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue