set_block_tip_latency

Documentation for eth_defi.provider.broken_provider.set_block_tip_latency function.

set_block_tip_latency(web3, block_count)[source]

Override the default block tip latency settings.

Useful for unit testing, because unit testing assumes stuff has happened in the latest block you want to read.

See get_block_tip_latency().

Parameters
  • web3 (web3.main.Web3) –

  • block_count (int) –