Skip to content

chore: extend attestation timeout - #4171

Closed
kevindeforth wants to merge 2 commits into
release/v3.14from
kd/extend-attestation-timeout
Closed

chore: extend attestation timeout#4171
kevindeforth wants to merge 2 commits into
release/v3.14from
kd/extend-attestation-timeout

Conversation

@kevindeforth

Copy link
Copy Markdown
Contributor

resolve_verification_tera_gas: 16,
// Must satisfy `Config::validate` (>= DEFAULT_EXPIRATION_DURATION_SECONDS).
launcher_hash_unused_ttl_seconds: 14 * 24 * 60 * 60,
launcher_hash_unused_ttl_seconds: 21 * 24 * 60 * 60,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking nit: perhaps there’s a way to extract this number into a single place?

Comment on lines 8515 to +8516
}
#[test]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
}
#[test]
}
#[test]

removed
}

pub(crate) fn extend_dstack_attestation_expiries(&mut self, extension: Duration) {

@pbeza pbeza Aug 18, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe add a TODO to remove this temporary method once the nodes’ firmware is upgraded and the issue is resolved? Though it’ll probably be hard to miss anyway, since Clippy should complain at that point.


let mut tee_state = old.tee_state;
tee_state.extend_dstack_attestation_expiries(Duration::from_secs(
mpc_attestation::attestation::DEFAULT_EXPIRATION_DURATION_SECONDS,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

DEFAULT_EXPIRATION_DURATION_SECONDS is meant to represent the duration of an attestation, but .extend_dstack_attestation_expiries() adds it to whatever expiry we currently have, no?

tee_verifier_votes: TeeVerifierVotes,
}

impl From<MpcContract> for crate::MpcContract {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, I tend to only skim these boilerplate migration files, but in this PR, that’s actually where the relevant change lives.

@kevindeforth

Copy link
Copy Markdown
Contributor Author

closing in favor of #4172

@kevindeforth
kevindeforth deleted the kd/extend-attestation-timeout branch August 18, 2026 13:48
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.

3 participants