|
46 | 46 | TransactionRocksDBStorage,
|
47 | 47 | TransactionStorage,
|
48 | 48 | )
|
49 |
| -from hathor.transaction.storage.transaction_storage import BaseTransactionStorage |
50 | 49 | from hathor.util import Random, get_environment_info, not_none
|
51 | 50 | from hathor.verification.verification_service import VerificationService
|
52 | 51 | from hathor.verification.vertex_verifiers import VertexVerifiers
|
@@ -132,7 +131,7 @@ def __init__(self) -> None:
|
132 | 131 | self._tx_storage_cache_capacity: Optional[int] = None
|
133 | 132 |
|
134 | 133 | self._indexes_manager: Optional[IndexesManager] = None
|
135 |
| - self._tx_storage: Optional[BaseTransactionStorage] = None |
| 134 | + self._tx_storage: Optional[TransactionStorage] = None |
136 | 135 | self._event_storage: Optional[EventStorage] = None
|
137 | 136 |
|
138 | 137 | self._reactor: Optional[Reactor] = None
|
@@ -394,7 +393,7 @@ def _get_or_create_indexes_manager(self) -> IndexesManager:
|
394 | 393 |
|
395 | 394 | return self._indexes_manager
|
396 | 395 |
|
397 |
| - def _get_or_create_tx_storage(self) -> BaseTransactionStorage: |
| 396 | + def _get_or_create_tx_storage(self) -> TransactionStorage: |
398 | 397 | indexes = self._get_or_create_indexes_manager()
|
399 | 398 |
|
400 | 399 | if self._tx_storage is not None:
|
@@ -617,7 +616,7 @@ def enable_event_queue(self) -> 'Builder':
|
617 | 616 | self._enable_event_queue = True
|
618 | 617 | return self
|
619 | 618 |
|
620 |
| - def set_tx_storage(self, tx_storage: BaseTransactionStorage) -> 'Builder': |
| 619 | + def set_tx_storage(self, tx_storage: TransactionStorage) -> 'Builder': |
621 | 620 | self.check_if_can_modify()
|
622 | 621 | self._tx_storage = tx_storage
|
623 | 622 | return self
|
|
0 commit comments