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

feat: add config params for dkg-rerun bitcoin block height and target rounds #1204

Conversation

cylewitruk
Copy link
Member

@cylewitruk cylewitruk commented Jan 10, 2025

Description

Closes: #1201
Closes: #1207

Changes

Adds the configuration parameter dkg_rerun_bitcoin_height (don't love the name) and dkg_rounds_target in preparation for #1199 and #1200.

I made this optional for now (contrary to #1201 requesting required) because I'm not sure how we want this to behave when it comes to devenv etc. -- required would mean that devenv needs to run two DKG's, maybe we don't want that? So I can change it to required after we discuss the implications if we want.

Testing Information

  • Adds one new test for each of the config parameters for testing reading the default configuration and env var.

Checklist:

  • I have performed a self-review of my code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@cylewitruk cylewitruk linked an issue Jan 10, 2025 that may be closed by this pull request
1 task
@cylewitruk cylewitruk self-assigned this Jan 10, 2025
@cylewitruk cylewitruk added sbtc signer binary The sBTC Bootstrap Signer. key rotation The functionality to rotate a private key for a signer in sBTC-v1. labels Jan 10, 2025
@cylewitruk cylewitruk added this to the sBTC: Key rotation milestone Jan 10, 2025
@cylewitruk cylewitruk changed the title feat: #1201 add config param for dkg-rerun bitcoin block height feat: add config params for dkg-rerun bitcoin block height and target rounds Jan 13, 2025
docker/mainnet/sbtc-signer/signer-config.toml.in Outdated Show resolved Hide resolved
docker/mainnet/sbtc-signer/signer-config.toml.in Outdated Show resolved Hide resolved
docker/sbtc/signer/signer-config.toml Outdated Show resolved Hide resolved
signer/src/config/mod.rs Outdated Show resolved Hide resolved
signer/src/config/mod.rs Outdated Show resolved Hide resolved
@cylewitruk
Copy link
Member Author

cylewitruk commented Jan 14, 2025

@djordon I left the default target to 1 -- it means an extra config param for signers when we do the 2nd round, but they need to add the min block height anyway.

It just feels better for me, that the default settings None+1 equal the current, default behavior.

signer/src/config/mod.rs Outdated Show resolved Hide resolved
@cylewitruk cylewitruk merged commit c35c82b into main Jan 14, 2025
4 checks passed
@cylewitruk cylewitruk deleted the 1201-feature-add-bitcoin-block-height-configuration-variable-for-second-dkg branch January 14, 2025 10:15
@djordon
Copy link
Collaborator

djordon commented Jan 14, 2025

@djordon I left the default target to 1 -- it means an extra config param for signers when we do the 2nd round, but they need to add the min block height anyway.

It just feels better for me, that the default settings None+1 equal the current, default behavior.

👍🏽 yeah that does feel better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
key rotation The functionality to rotate a private key for a signer in sBTC-v1. sbtc signer binary The sBTC Bootstrap Signer.
Projects
Status: Done
3 participants