You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Improve util functions based on the latest update in LIP0053
defverifyLivenessConditionForRegisteredChains(ccu: Transaction) ->None:
iflen(ccu.params.certificate) >0andlen(ccu.params.inboxUpdate) >0:
certificate=decode(certificateSchema, ccu.params.certificate)
timestamp=timestampoftheblockincludingccuiflen(ccu.params.inboxUpdate) >0andtimestamp-certificate.timestamp>LIVENESS_LIMIT/2:
raiseException(f"The first CCU with a non-empty inbox update cannot contain a certificate older than {LIVENESS_LIMIT/2} seconds.")
### What was the problem?
This PR resolves#7686
### How was it solved?
- Add `verifyLivenessConditionForRegisteredChains` in utils for
interoperability according to LIP
### How was it tested?
- Add unit tests
Description
Improve util functions based on the latest update in LIP0053
Acceptance Criteria
Additional Information
The text was updated successfully, but these errors were encountered: