vssize global state for testing purposes.

This commit is contained in:
Hernán Di Pietro 2021-11-16 10:32:54 -03:00
parent 7abadca9e7
commit 2db37c7eca
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Global state:
"vphash" : Hash of verification program logic
"gsexp" : Guardian set expiration time
"gscount" : Guardian set size
"vssize" : Verification step size.
key N : address of guardian N
------------------------------------------------------------------------------------------------
@ -95,6 +96,7 @@ def bootstrap():
),
App.globalPut(Bytes("gscount"), guardian_count.load()),
App.globalPut(Bytes("gsexp"), Btoi(Txn.application_args[1])),
App.globalPut(Bytes("vssize"), Int(MAX_SIGNATURES_PER_VERIFICATION_STEP)),
Approve()
])