diff --git a/squeaknode/db/squeak_db.py b/squeaknode/db/squeak_db.py index e6477af8..b3a6e7ac 100644 --- a/squeaknode/db/squeak_db.py +++ b/squeaknode/db/squeak_db.py @@ -1248,7 +1248,7 @@ class SqueakDb: with self.get_connection() as connection: connection.execute(stmt) - def get_latest_settle_index(self): + def get_latest_settle_index(self) -> Optional[int]: """ Get the lnd settled index of the most recent received payment. """ s = select( [func.max(self.received_payments.c.settle_index)], diff --git a/squeaknode/node/payment_processor.py b/squeaknode/node/payment_processor.py index ce742a48..f9a23d25 100644 --- a/squeaknode/node/payment_processor.py +++ b/squeaknode/node/payment_processor.py @@ -111,7 +111,7 @@ class PaymentProcessorTask: ) self.stopped.wait(self.retry_s) - def get_latest_settle_index(self): + def get_latest_settle_index(self) -> int: return self.squeak_db.get_latest_settle_index() or 0 def get_sent_offer_for_payment_hash(self, payment_hash: bytes) -> SentOffer: