mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-10-26 20:40:51 +03:00
hint chia.protocols.pool_protocol (#14695)
This commit is contained in:
parent
44c836f4d4
commit
377e95319a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user