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: default to .signers boot contract in signer config #4266

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

hstove
Copy link
Contributor

@hstove hstove commented Jan 19, 2024

This small change makes the stackerdb_contract_id config variable for the signer an optional field. When it isn't provided, it defaults to BOOT_CODE_ADDR.signers.

Although all testing (unit and functional) is currently done with "mock" contracts, it might make sense to wait for #4263 before merging. We can also choose to merge this into that PR.

@CLAassistant
Copy link

CLAassistant commented Jan 19, 2024

CLA assistant check
All committers have signed the CLA.

@hstove hstove force-pushed the feat/default-signerdb-config branch from d46af99 to ea77566 Compare January 19, 2024 23:54
Some(id) => QualifiedContractIdentifier::parse(&id).map_err(|_| {
ConfigError::BadField("stackerdb_contract_id".to_string(), id.clone())
})?,
None => boot_code_id("signers", raw_data.network == Network::Mainnet),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it an issue to run the signer against testnet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this is just setting the boot code address depending on the signer's config

@hstove hstove force-pushed the feat/default-signerdb-config branch from dafd97a to 5e7726d Compare January 26, 2024 17:24
Copy link

codecov bot commented Jan 26, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (be489b4) 83.41% compared to head (5e7726d) 83.31%.

Files Patch % Lines
stacks-signer/src/config.rs 97.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #4266      +/-   ##
==========================================
- Coverage   83.41%   83.31%   -0.10%     
==========================================
  Files         432      432              
  Lines      307438   307468      +30     
==========================================
- Hits       256445   256172     -273     
- Misses      50993    51296     +303     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hstove hstove merged commit 19c6b31 into stacks-network:next Jan 26, 2024
2 checks passed
@hstove hstove deleted the feat/default-signerdb-config branch January 26, 2024 21:26
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants