You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently some issues with transaction confirmation in web3 crate. Current issues that are addressed are:
Waiting for confirmations with 0 confirmations (i.e. just wait for the transaction to mine with no extra blocks) panics.
Does not work with development nodes like Ganache that auto-mine transaction as soon as they are sent since the block filter is set up after the transaction is already mined.
Might have some issues with ommer blocks where the actual block where the transaction was mined can change during reorgs (to be confirmed).
Does not work with nodes that do not support filters (like Infura over HTTP/HTTPS). This can be addressed by falling back to polling the node.
Hopefully some of these fixes can be upstreamed.
The text was updated successfully, but these errors were encountered:
This PR unifies the confirmation API between all transaction (deployment and method calls) and eliminates the `send_and_confirm` method as now confirmation parameters are part of the transaction builder.
Note that this also addresses some issues with confirmation. A new case was created to upstream some of these issues to `web3` crate here: #104. Details of the issues with the current confirmation implementation are in the aforementioned issue.
This closes#95
### Test Plan
New unit tests for the confirmation implementation and add waiting for confirmation with Ganache example. (Note that Rinkeby example currently waits for confirmation already).
### Commit History
* started implemented confirmation
* implemented confirmations
* transaction confirmation options
* confirmation support from transactions
* adjust examples for new confirmations
* added support for polling
* Added a bunch of unit tests
* added polling unit test
* initial confirmation implementation
* todo
* update comment
* check transaction result when it is confirmed
* added unit tests for transactions with new confirmation API
* fix comment typo
* fix copy pasta
* ability to never timeout
There are currently some issues with transaction confirmation in
web3
crate. Current issues that are addressed are:Hopefully some of these fixes can be upstreamed.
The text was updated successfully, but these errors were encountered: