File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
packages/cardano-services/src/WsServer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -220,9 +220,9 @@ export class CardanoWsServer extends WsProvider {
220220        } ; 
221221
222222        const  loadTransactions  =  async  ( )  =>  { 
223-           const  addressesSet   =   new   Set < Cardano . PaymentAddress > ( ) ; 
224-           for  ( const  ws  of  this . wss . clients )  for  ( const  address  of  ws . addresses )  addressesSet . add ( address ) ; 
225-           const  addresses  =  [ ... addressesSet ] ; 
223+           const  addressesObj :  Record < Cardano . PaymentAddress ,   true >   =   { } ; 
224+           for  ( const  ws  of  this . wss . clients )  for  ( const  address  of  ws . addresses )  addressesObj [ address ]   =   true ; 
225+           const  addresses  =  Object . keys ( addressesObj )   as   Cardano . PaymentAddress [ ] ; 
226226
227227          if  ( debugLog )  this . logger . debug ( `Transactions for notification ${ notification }   ${ JSON . stringify ( addresses ) }  ` ) ; 
228228
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments