#NEWLINE# def __init__( self , db_dir ) : #NEWLINE# #INDENT# self . db_dir = self #NEWLINE# self . db = None #NEWLINE# self . next_manage_call = None #NEWLINE# self . wallet_balance = Decimal ( 0.0 ) #NEWLINE# self . total_reserved_points = Decimal ( 0.0 ) #NEWLINE# self . peer_addresses = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . queued_payments = defaultdict ( Decimal ) #NEWLINE# self . expected_balances = defaultdict ( Decimal ) #NEWLINE# self . current_address_given_to_peer = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . expected_balance_at_time = deque ( ) #NEWLINE# self . max_expected_payment_time = datetime . timedelta ( minutes = 3 ) #NEWLINE# self . stopped = True #NEWLINE# self . is_lagging = None #NEWLINE# self . manage_running = False #NEWLINE# self . _manage_count = 0 #NEWLINE# self . _balance_refresh_time = 3 #NEWLINE# self . _batch_count = 20 #NEWLINE# self . _first_run = self . _FIRST_RUN_UNKNOWN