mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-11 01:28:17 +03:00
unused locks (#10320)
* unused locks * unused locks * unused locks * unused locks * unused locks * unused locks * removed unused import
This commit is contained in:
parent
b544e75cd7
commit
a59979b8c8
@ -1,4 +1,3 @@
|
||||
import asyncio
|
||||
import logging
|
||||
from typing import Dict, Optional
|
||||
|
||||
@ -19,7 +18,6 @@ class CATLineageStore:
|
||||
"""
|
||||
|
||||
db_connection: aiosqlite.Connection
|
||||
lock: asyncio.Lock
|
||||
db_wrapper: DBWrapper
|
||||
table_name: str
|
||||
|
||||
@ -34,8 +32,6 @@ class CATLineageStore:
|
||||
)
|
||||
|
||||
await self.db_connection.commit()
|
||||
# Lock
|
||||
self.lock = asyncio.Lock() # external
|
||||
return self
|
||||
|
||||
async def close(self):
|
||||
|
@ -211,7 +211,6 @@ class WalletNode:
|
||||
self.log.info(f"Copying wallet db from {standalone_path} to {path}")
|
||||
path.write_bytes(standalone_path.read_bytes())
|
||||
|
||||
self.new_peak_lock = asyncio.Lock()
|
||||
assert self.server is not None
|
||||
self.wallet_state_manager = await WalletStateManager.create(
|
||||
private_key,
|
||||
|
@ -81,8 +81,6 @@ class WalletStateManager:
|
||||
# Makes sure only one asyncio thread is changing the blockchain state at one time
|
||||
lock: asyncio.Lock
|
||||
|
||||
tx_lock: asyncio.Lock
|
||||
|
||||
log: logging.Logger
|
||||
|
||||
# TODO Don't allow user to send tx until wallet is synced
|
||||
|
Loading…
Reference in New Issue
Block a user