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

add "block" scheduler type + sweep integration test #339

Merged
merged 7 commits into from
Oct 5, 2024

Conversation

louisinger
Copy link
Collaborator

@louisinger louisinger commented Sep 30, 2024

This PR adds necessary changes to encode round lifetime in number of blocks. It allows writing an integration test for the sweeper.

TL;DR

  • [common] rework bip68.go : use btcd functions instead of custom ones ; remove test file (duplicate of btcd unit tests).
  • [ports] add "block" scheduler type
  • [config] ARK_ROUND_LIFETIME smaller than 512 now works if ARK_SCHEDULER_TYPE is set to "block". In that case, the lifetime is encoded in terms of block height instead of seconds.
  • [tests] add TestSweep in covenant & covenantless

disclaimer
block scheduler type has the disadvantage to rely on esplora API whereas gocron scheduler does not call any endpoints. Always prefer gocron in production._

@altafan please review

@altafan altafan merged commit 0d39bb6 into ark-network:master Oct 5, 2024
5 checks passed
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