2894@@ -2878,7 +2895,8 @@ static RPCHelpMan listunspent()
2895             + HelpExampleCli("listunspent", "6 9999999 '[]' true '{ \"minimumAmount\": 0.005 }'")
2896             + HelpExampleRpc("listunspent", "6, 9999999, [] , true, { \"minimumAmount\": 0.005 } ")
2897                 },
2898-        [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
2899+        [&](const RPCHelpMan& self, const JSONRPCRequest& request)
2900+            EXCLUSIVE_LOCKS_REQUIRED(!cs_main) -> UniValue
      
        
        
        
          
          
        
        
        
          
          
            
              
            
              
The wallet shouldn’t know and care about validation locks. Also, this only silences a warning, it won’t and can’t ever be checked upstream in the call graph
              
            
           
         
       
    
        
        
        
          
          
        
        
        
          
          
            
              
            
              
Would NO_THREAD_SAFETY_ANALYSIS be better?
The purpose of this PR is to only silence the warnings.