Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

decoupled pub/sub and polling paradigms in contract deployment timeout #1414

Merged
merged 3 commits into from
Mar 13, 2018

Conversation

adonley
Copy link
Contributor

@adonley adonley commented Mar 2, 2018

In the web3-core-method package, there's a mix of ideas when handling contract deployment error. One of pub/sub (you get a block) and one of an interval set (polling every second) which use the same catch and "block timeout". This fix differentiates between polling and pub/sub watching by adding another variable to the checkConfirmation method and a new timeout for polling (15 * BLOCKTIMEOUT) which approximates the time it currently takes to solve BLOCKTIMEOUT blocks.

This fixes #1102 and some of #951.

@coveralls
Copy link

coveralls commented Mar 2, 2018

Coverage Status

Coverage decreased (-0.1%) to 85.821% when pulling 112240a on adonley:fix/polling-contract-timeout into a4d592e on ethereum:1.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants