@@ -0,0 +1,1197 @@
+#/usr/bin/env python%0A%0A#%0A# requires your to be set the environment variable before running%0A#%0A# Infura Project ID:%0A#%0A#     export WEB3_INFURA_PROJECT_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX%0A#%0A# Ding Bot Access Token:%0A#%0A#     export DING_BOT_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX%0A#%0A%0Afrom web3 import Web3%0A%0Ainfura_project_id = os.getenv(%22WEB3_INFURA_PROJECT_ID%22)%0A%0Ainfura_w3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/' + infura_project_id))%0Alocalnode_w3 = Web3(Web3.HTTPProvider('http://127.0.0.1:8545'))%0A%0Aif not infura_w3.isConnected():%0A  print(%22%5Beth%5D %5Binfura%5D geth is not available%22)%0A  os.exit(1)%0A  %0Aif not localnode_w3.isConnected():%0A  print(%22%5Beth%5D %5Blocal node%5D geth is not available%22)%0A  os.exit(2)%0A  %0Aif infura_w3.eth.block_number != localnode_w3.eth.block_number:%0A  print(%22w3.eth.block_number conflict%22)%0A  os.exit(3)%0A  %0Aif infura_w3.eth.chain_id != localnode_w3.eth.chain_id:%0A  print(%22w3.eth.chain_id conflict%22)%0A  os.exit(4)%0A  %0Aif infura_w3.eth.protocol_version != localnode_w3.eth.protocol_version:%0A  print(%22w3.eth.protocol_version conflict%22)%0A  os.exit(4)%0A  %0Aprint(%22Local Node: %22, localnode_w3.clientVersion)%0Aprint(%22infura: %22, infura_w3.clientVersion)%0A%0Aprint(%22Everything is fine%22)%0A

Create localnode_vs_infura.py