Skip to content
Snippets Groups Projects
Commit f79e5a15 authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] explicit var names in services/blockchain.py

parent 1401a541
No related branches found
No related tags found
1 merge request!7750.50.0
......@@ -64,22 +64,22 @@ class BlockchainService(QObject):
try:
self._update_lock = True
self.app.refresh_started.emit()
start = self._blockchain_processor.block_number_30days_ago(
start_number = self._blockchain_processor.block_number_30days_ago(
self.currency, network_blockstamp
)
if self.current_buid().number > start:
start = self.current_buid().number + 1
if self.current_buid().number > start_number:
start_number = self.current_buid().number + 1
else:
connections = self._connections_processor.connections_to(
self.currency
)
time_30days_ago = self._blockchain_processor.rounded_timestamp(
self.currency, start
end_time = self._blockchain_processor.rounded_timestamp(
self.currency, start_number
)
self._transactions_service.insert_stopline(
connections, start, time_30days_ago
connections, start_number, end_time
)
self._logger.debug("Parsing from {0}".format(start))
self._logger.debug("Parsing from {0}".format(start_number))
connections = self._connections_processor.connections_to(self.currency)
await self._identities_service.refresh()
(
......@@ -87,7 +87,7 @@ class BlockchainService(QObject):
new_tx,
new_dividends,
) = await self._transactions_service.handle_new_blocks(
connections, start, network_blockstamp.number
connections, start_number, network_blockstamp.number
)
await self._sources_service.refresh_sources(connections)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment