Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable services #535

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 47 additions & 19 deletions app/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,53 @@ explorer {
boot-mode = ReadWrite
boot-mode = ${?EXPLORER_BOOT_MODE}

# Sync interval for BlockFlowSyncService & MempoolSyncService
sync-period = 5 seconds
sync-period = ${?EXPLORER_SYNC_PERIOD}

# Schedule time for TokenSupplyService
token-supply-service-schedule-time = "02:00"
token-supply-service-schedule-time = ${?EXPLORER_TOKEN_SUPPLY_SERVICE_SCHEDULE_TIME}

# Sync interval for HashRateService
hash-rate-service-sync-period = 1 hours
hash-rate-service-sync-period = ${?EXPLORER_HASH_RATE_SERVICE_SYNC_PERIOD}

# Sync interval for FinalizerService
finalizer-service-sync-period = 10 minutes
finalizer-service-sync-period = ${?EXPLORER_FINALIZER_SERVICE_SYNC_PERIOD}

# Sync interval for TransactionHistoryService
transaction-history-service-sync-period = 15 minutes
transaction-history-service-sync-period = ${?EXPLORER_TRANSACTION_HISTORY_SERVICE_SYNC_PERIOD}
services {
blockflow-sync = {
# BlockFlowSync Service is always enabled
# Sync interval for BlockFlowSyncService
sync-period = 5 seconds
sync-period = ${?EXPLORER_SYNC_PERIOD}
}

mempool-sync = {
enable = true,
enable = ${?EXPLORER_MEMPOOL_SYNC_ENABLE}
# Sync interval for MempoolSyncService
sync-period = 5 seconds
sync-period = ${?EXPLORER_SYNC_PERIOD}
}

token-supply = {
enable = true,
enable = ${?EXPLORER_TOKEN_SUPPLY_ENABLE}
# Schedule time for TokenSupplyService
schedule-time = "02:00"
schedule-time = ${?EXPLORER_TOKEN_SUPPLY_SERVICE_SCHEDULE_TIME}
}

hashrate = {
enable = ${?EXPLORER_HASHRATE_ENABLE}
enable = true,
# Sync interval for HashRateService
sync-period = 1 hours
sync-period = ${?EXPLORER_HASH_RATE_SERVICE_SYNC_PERIOD}
}

tx-history = {
enable = ${?EXPLORER_TX_HISTORY_ENABLE}
enable = true,
# Sync interval for TransactionHistoryService
sync-period = 15 minutes
sync-period = ${?EXPLORER_TRANSACTION_HISTORY_SERVICE_SYNC_PERIOD}
}

finalizer = {
# FinalizerService is always enabled
# Sync interval for FinalizerService
sync-period = 10 minutes
sync-period = ${?EXPLORER_FINALIZER_SERVICE_SYNC_PERIOD}
}
}

# Cache reloading intervals for BlockCache
cache-row-count-reload-period = 10 seconds
Expand Down
Loading
Loading