Skip to content

chore: use configuration value instead of constant for TEE_UPGRADE_PERIOD#995

Merged
DSharifi merged 10 commits intomainfrom
dsharifi/use-config-over-constant
Sep 3, 2025
Merged

chore: use configuration value instead of constant for TEE_UPGRADE_PERIOD#995
DSharifi merged 10 commits intomainfrom
dsharifi/use-config-over-constant

Conversation

@DSharifi
Copy link
Copy Markdown
Contributor

@DSharifi DSharifi commented Sep 2, 2025

closes #994

I'm sad that once again we have limitations on what we can put in the contract state structs because of the serde/borsh bounds. We have these bounds because we don't have any interface types and use the contract types directly as return types on the contract method, and the node depends on them.

This means we can't for example use structures such as Rc + RefCell to store the configuration value, instead of passing down values for every call.

See revert commit:
a98c6d9

@DSharifi DSharifi marked this pull request as ready for review September 3, 2025 07:48
Copy link
Copy Markdown
Collaborator

@netrome netrome left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'm sad that we have to have dynamic configuration for these deadlines/timeouts to be able to test them. Although we'll want to support configuring support for local attestations anyway.

Comment thread libs/chain-signatures/contract/src/config.rs
Comment thread libs/chain-signatures/contract/src/tee/proposal.rs
@DSharifi DSharifi added this pull request to the merge queue Sep 3, 2025
Merged via the queue into main with commit af50ed7 Sep 3, 2025
13 checks passed
@DSharifi DSharifi deleted the dsharifi/use-config-over-constant branch September 3, 2025 09:09
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.

Use configuration value in place of hard coded constants for TEE_UPGRADE_PERIOD

3 participants