-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add events to transaction submission in support of performance testing #3438
Comments
@benjamincburns Thanks for proposing and for the design work. LGTM. |
@cgewecke glad to see you're working on web3 these days! Hope you're doing well! If you're happy with this I'll go ahead and move forward with a PR. Is web3 on a particular release cadence at the moment? Which branch should I target to minimize the time that it'll take to get this into a release? If I were to get a PR in and approved today, when should I expect that it would be released? |
@benjamincburns Hi :) The cadence is slow - Web3 1.x is trying to make changes conservatively. For example, every PR has at least 3 days of open public review and every formal release is preceded by a beta release with a week long "request for comment" . At the moment we are publishing from 1.x and will hopefully release 1.2.7-rc.0 within a couple weeks. Fair warning: it's possible that only things currently in the PR queue will be included in the next patch (sorry) but if you'd like to open a PR that would wonderful. |
OK, thanks for setting expectations. Fortunately I have a workaround for now for websocket connections so I'm able to move forward with my perf testing in the short term with that. For more info you might want to see my comments on the PR containing my workaround (hyperledger-caliper/caliper#780). |
Ok awesome! Thanks @benjamincburns. |
It would be helpful if the PromiEvent that is returned when sending transactions fired off events that provided finer-grained detail on the transaction submission process. There are numerous benefits to this:
Expected behavior
PromiEvents for transactions would fire the following events
sending
eth_chainId
,eth_estimateGas
, oreth_gasPrice
must be completed prior this event being fired.sent
transactionHash
confirmation
receipt
error
Actual behavior
Events are only fired for
transactionHash
,receipt
,confirmation
, anderror
.Confirmation
events don't include the current block hash, meaning that applications must fetch it if they need that information.Versions
Applies to all versions in existence today (
<=v1.2.6
,v2.0.0-alpha
, andv2.0.0-alpha.1
).Related Issues
The text was updated successfully, but these errors were encountered: