diff --git a/src/sakia/core/net/network.py b/src/sakia/core/net/network.py index eec21ff4c601e49a2b2bdd31b16904ec70ef8644..6fa6608e1b387a0a9537ad367b60e64c77a724da 100644 --- a/src/sakia/core/net/network.py +++ b/src/sakia/core/net/network.py @@ -288,7 +288,7 @@ class Network(QObject): :return: the number of confirmations of a data :rtype: int """ - if block_number: + if block_number is not None: if block_number > self.current_blockUID.number: raise ValueError("Could not compute confirmations : data block number is after current block") return self.current_blockUID.number - block_number + 1