invalidate_anvil_detection

Documentation for eth_defi.provider.anvil.invalidate_anvil_detection function.

invalidate_anvil_detection(web3)

Forget node-kind detection after reconnecting or replacing an endpoint.

Provider replacement is detected automatically; an operator restarting a different node behind an unchanged endpoint can invalidate explicitly.

Parameters

web3 (web3.main.Web3) – Connection whose cached successful detection is discarded.

Returns

None.

Return type

None