hint chia.protocols.pool_protocol (#14695)

This commit is contained in:
Kyle Altendorf 2023-02-28 09:42:00 -08:00 committed by GitHub
parent 44c836f4d4
commit 377e95319a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,5 +173,5 @@ def get_current_authentication_token(timeout: uint8) -> uint64:
# Validate a given authentication token against our local time
def validate_authentication_token(token: uint64, timeout: uint8):
def validate_authentication_token(token: uint64, timeout: uint8) -> bool:
return abs(token - get_current_authentication_token(timeout)) <= timeout