Open ameba23 opened 3 days ago
I'd like to avoid dealing with block numbers here if possible. They introduce an element of uncertainty, especially in testing.
I think (1) is the most reasonable approach. One thing I'd like to ensure though is that there are a limited number of pending quotes issued per validator (and maybe the limit here is just one). We could either enforce this per track (e.g one per enum variant) or just one limit overall.
Related to https://github.com/entropyxyz/entropy-core/issues/982
https://github.com/entropyxyz/entropy-core/pull/1173 adds a HTTP route which creates a quote and returns it to the caller in the response body. This is intended for use by node operators to retrieve a TDX quote for use in the
validate
,change_endpoint
andchange_tss_accounts
extrinsics.The problem is, the current block number is included in the quote input data which is checked when validating the quote.
Since there is a human in the loop (the node operator), we cannot know at the point of creating the quote exactly when it will be submitted for verification.
Possible solutions:
I would go for either 1 or 5 for now as they are the simplest.