# Timer for dchain-update.service — fires hourly with a random 15-minute jitter. # # Why the jitter: if every operator on the same network runs `OnCalendar=hourly` # at :00:00, the whole federation restarts its nodes in the same minute and # PBFT quorum drops below 2/3. With a random delay spread across 15 minutes # each node updates at a slightly different time, so at any instant the vast # majority of validators remain live. # # Persistent=true means if the machine was asleep/off at fire time, the timer # catches up on next boot instead of silently skipping. [Unit] Description=Run DChain node update hourly Requires=dchain-update.service [Timer] OnBootSec=10min OnUnitActiveSec=1h RandomizedDelaySec=15min Persistent=true Unit=dchain-update.service [Install] WantedBy=timers.target