Skip to content

Commit

Permalink
Set revocation registry size at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
wdbasson committed Aug 7, 2024
1 parent 67e033e commit d6f8379
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/definitions/credential_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from app.util.definitions import credential_definition_from_acapy
from app.util.transaction_acked import wait_for_transaction_ack
from shared.log_config import get_logger
from shared import REGISTRY_SIZE

logger = get_logger(__name__)

Expand Down Expand Up @@ -49,7 +50,7 @@ async def create_credential_definition(
schema_id=credential_definition.schema_id,
support_revocation=support_revocation,
tag=credential_definition.tag,
revocation_registry_size=32767,
revocation_registry_size=REGISTRY_SIZE,
)

result = await publisher.publish_credential_definition(request_body)
Expand Down
1 change: 1 addition & 0 deletions shared/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@

# timeout for waiting for registries to be created
REGISTRY_CREATION_TIMEOUT = int(os.getenv("REGISTRY_CREATION_TIMEOUT", "60"))
REGISTRY_SIZE = int(os.getenv("REGISTRY_SIZE", "32767"))

# Billing Service
LAGO_URL = os.getenv("LAGO_URL", "")
Expand Down

0 comments on commit d6f8379

Please sign in to comment.