@ -590,16 +590,27 @@ class JMWalletDaemon(Service):
session = not self . cookie == None
session = not self . cookie == None
maker_running = self . coinjoin_state == CJ_MAKER_RUNNING
maker_running = self . coinjoin_state == CJ_MAKER_RUNNING
coinjoin_in_process = self . coinjoin_state == CJ_TAKER_RUNNING
coinjoin_in_process = self . coinjoin_state == CJ_TAKER_RUNNING
schedule = None
if self . services [ " wallet " ] :
if self . services [ " wallet " ] :
if self . services [ " wallet " ] . isRunning ( ) :
if self . services [ " wallet " ] . isRunning ( ) :
wallet_name = self . wallet_name
wallet_name = self . wallet_name
if self . coinjoin_state == CJ_TAKER_RUNNING and self . tumbler_options is not None :
auth_header = request . getHeader ( ' Authorization ' )
if auth_header is not None :
# At this point if an `auth_header` is present, it has been checked
# by the call to `check_cookie_if_present` above.
if self . taker is not None and not self . taker . aborted :
schedule = self . taker . schedule
else :
else :
wallet_name = " not yet loaded "
wallet_name = " not yet loaded "
else :
else :
wallet_name = " None "
wallet_name = " None "
return make_jmwalletd_response ( request , session = session ,
return make_jmwalletd_response ( request , session = session ,
maker_running = maker_running ,
maker_running = maker_running ,
coinjoin_in_process = coinjoin_in_process ,
coinjoin_in_process = coinjoin_in_process ,
schedule = schedule ,
wallet_name = wallet_name )
wallet_name = wallet_name )
@app . route ( ' /wallet/<string:walletname>/taker/direct-send ' , methods = [ ' POST ' ] )
@app . route ( ' /wallet/<string:walletname>/taker/direct-send ' , methods = [ ' POST ' ] )
@ -1133,7 +1144,7 @@ class JMWalletDaemon(Service):
self . check_cookie ( request )
self . check_cookie ( request )
if self . coinjoin_state is not CJ_NOT_RUNNING or self . tumbler_options is not None :
if self . coinjoin_state is not CJ_NOT_RUNNING or self . tumbler_options is not None :
# Tumbler or t aker seems to be running already.
# Tumbler, taker, or m aker seems to be running already.
return make_jmwalletd_response ( request , status = 409 )
return make_jmwalletd_response ( request , status = 409 )
if not self . services [ " wallet " ] :
if not self . services [ " wallet " ] :