mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 12:57:27 +00:00 
			
		
		
		
	Merge 4966062c67 into 80208ed9b7
				
					
				
			This commit is contained in:
		
						commit
						68e90c7d60
					
				@ -42,7 +42,7 @@ func pingZgChain(rpcUrl string) error {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	defer res.Body.Close()
 | 
			
		||||
	if res.StatusCode >= 400 {
 | 
			
		||||
	if res.StatusCode >= http.StatusBadRequest {
 | 
			
		||||
		return fmt.Errorf("ping to status failed: %d", res.StatusCode)
 | 
			
		||||
	}
 | 
			
		||||
	log.Println("successfully started ZgChain!")
 | 
			
		||||
@ -57,7 +57,7 @@ func pingEvm(evmRpcUrl string) error {
 | 
			
		||||
	}
 | 
			
		||||
	defer res.Body.Close()
 | 
			
		||||
	// when running, it should respond 405 to a GET request
 | 
			
		||||
	if res.StatusCode != 405 {
 | 
			
		||||
	if res.StatusCode != http.StatusMethodNotAllowed {
 | 
			
		||||
		return fmt.Errorf("ping to evm failed: %d", res.StatusCode)
 | 
			
		||||
	}
 | 
			
		||||
	log.Println("successfully pinged EVM!")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user