filter.py 224 B

12345678910
  1. from web3Tools import *
  2. initBlock = w3.eth.blockNumber
  3. while True:
  4. nowBlock = w3.eth.blockNumber
  5. while initBlock >= nowBlock:
  6. nowBlock = w3.eth.blockNumber
  7. initBlock = nowBlock
  8. printTime(nowBlock)