File tree Expand file tree Collapse file tree
extensions/business/dauth Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525from extensions .business .mixins .request_tracking_mixin import _RequestTrackingMixin
2626from extensions .business .dauth .dauth_mixin import _DauthMixin
2727
28- __VER__ = '0.2.3 '
28+ __VER__ = '0.3.0 '
2929
3030_CONFIG = {
3131 ** BasePlugin .CONFIG ,
Original file line number Diff line number Diff line change @@ -300,9 +300,8 @@ def fill_dauth_data(
300300
301301 # set supervisor secrets if this is a protocol oracle; dAuth-only secrets
302302 # are additionally gated by the dAuth oracle registry.
303- requester_is_oracle = is_node and requester_node_address in oracles
304- requester_is_dauth_oracle = False
305- if requester_is_oracle :
303+ if is_node and requester_node_address in oracles :
304+ requester_is_dauth_oracle = False
306305 try :
307306 requester_is_dauth_oracle = self .bc .is_dauth_oracle (node_address_eth = sender_eth_address )
308307 except Exception as e :
@@ -312,12 +311,10 @@ def fill_dauth_data(
312311 )
313312 # end try
314313
315- if requester_is_oracle :
316314 dauth_data ["EE_SUPERVISOR" ] = True
317- dauth_oracle_only_keys = getattr (self , "cfg_dauth_oracle_only_supervisor_keys" , [])
318315 for key in self .cfg_supervisor_keys :
319316 if isinstance (key , str ) and len (key ) > 0 :
320- if key in dauth_oracle_only_keys and not requester_is_dauth_oracle :
317+ if key in self . cfg_dauth_oracle_only_supervisor_keys and not requester_is_dauth_oracle :
321318 continue
322319 dauth_data [key ] = self .os_environ .get (key )
323320 # end if
You can’t perform that action at this time.
0 commit comments