mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-18 14:24:21 +01:00
Block negative checksums for possible race condition (PublicChannelsHandler::__checksum_handler).
This commit is contained in:
@@ -150,4 +150,6 @@ class PublicChannelsHandler:
|
||||
serializers.Liquidation.parse(*stream[0][0]))
|
||||
|
||||
def __checksum_handler(self, subscription: "Book", value: int):
|
||||
return self.__event_emitter.emit("checksum", subscription, value)
|
||||
if not value < 0:
|
||||
return self.__event_emitter.emit( \
|
||||
"checksum", subscription, value)
|
||||
|
||||
Reference in New Issue
Block a user