kopia lustrzana https://github.com/bugout-dev/moonstream
				
				
				
			Merge pull request #997 from moonstream-to/nb-latest-stark-goerli
Latest block check for starknet goerlipull/998/head
						commit
						ecbe6482f7
					
				| 
						 | 
				
			
			@ -198,7 +198,7 @@ func (bpool *BlockchainPool) HealthCheck() {
 | 
			
		|||
	for _, b := range bpool.Blockchains {
 | 
			
		||||
		var timeout time.Duration
 | 
			
		||||
		getLatestBlockReq := `{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}`
 | 
			
		||||
		if b.Blockchain == "starknet" {
 | 
			
		||||
		if b.Blockchain == "starknet" || b.Blockchain == "starknet-goerli" {
 | 
			
		||||
			getLatestBlockReq = `{"jsonrpc":"2.0","method":"starknet_getBlockWithTxHashes","params":["latest"],"id":"0"}`
 | 
			
		||||
			timeout = NB_HEALTH_CHECK_CALL_TIMEOUT * 2
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue