parameters: (self, newConfig, hashValue)
docstring: Verify and queue new configuration for loading.
docstring_summary: Verify and queue new configuration for loading.
docstring_tokens: Verify and queue new configuration for loading .
function: def loadConfig(self, newConfig, hashValue):
          '''Verify and queue new configuration for loading.'''
  
          # Convert from protobuf to json
          jsonConfig = NodeConfig.fromProtoBuf(newConfig)
          jsonConfig['node']['nodeId'] = self.config.nodeId # Don't overwrite node id via update
  
          # Create, verify, and store new configuration
          newConfig = NodeConfig(configData=jsonConfig)
  
          if (newConfig.calculateHash() == hashValue and newConfig.loadSuccess): # configuration verified
              #self.newConfig = newConfig
              return [True, newConfig]
          else:
              #self.newConfig = None
              return [False, None]
function_tokens: def loadConfig ( self , newConfig , hashValue ) : # Convert from protobuf to json jsonConfig = NodeConfig . fromProtoBuf ( newConfig ) jsonConfig [ 'node' ] [ 'nodeId' ] = self . config . nodeId # Don't overwrite node id via update # Create, verify, and store new configuration newConfig = NodeConfig ( configData = jsonConfig ) if ( newConfig . calculateHash ( ) == hashValue and newConfig . loadSuccess ) : # configuration verified #self.newConfig = newConfig return [ True , newConfig ] else : #self.newConfig = None return [ False , None ]