Skip to content

Conversation

@douglaz
Copy link
Owner

@douglaz douglaz commented Jul 29, 2025

Summary

Fix the ops calculation in complex-scheme.sh to correctly reflect the baseline derivation time.

Changes

  • Updated comment: OPS=10 takes 30s (not 60s)
  • Fixed calculation: N days = N * 28800 ops (was N * 14400)

Details

The previous calculation assumed OPS=10 takes 60 seconds, but the actual baseline is 30 seconds. This meant the time-lock was only half as long as intended. With this fix, the calculation now correctly produces the intended time-lock duration.

Testing

The formula can be verified:

  • 1 day = 24 hours × 3600 seconds = 86,400 seconds
  • With OPS=10 taking 30 seconds: 86,400 / 30 × 10 = 28,800 ops per day

- Update comment to reflect that OPS=10 takes 30s (not 60s)
- Adjust calculation: N days = N * 28800 ops (was N * 14400)
- This maintains the intended time-lock duration with corrected baseline
@douglaz douglaz enabled auto-merge July 29, 2025 18:26
@douglaz douglaz merged commit a75aab0 into master Jul 29, 2025
1 check passed
@douglaz douglaz deleted the fix-ops-calculation branch July 29, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants