-
Notifications
You must be signed in to change notification settings - Fork 295
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
chore(connector-go-eth): upgrade web3.js to recent version #2089
chore(connector-go-eth): upgrade web3.js to recent version #2089
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@petermetz @jagpreetsinghsasan (cc: @izuru0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add a new package `@hyperledger/cactus-test-verifier-client` for verifier-client stress and functional tests that involve multiple packages. - Add stress test for verifier-client that reports memory usage of repeated operation on `cactus-plugin-ledger-connector-go-ethereum-socketio` connector plugin. - Fix a memory leak in `SocketIOApiClient` - free socket listeners when they are no longer needed. - Fix `cactus-plugin-ledger-connector-go-ethereum-socketio` - use single a web3 connection (with keep-alive/reconnect) instead of spawning new one for each request. Previous solution was causing connection issues in stress testing. Depends on: hyperledger-cacti#2089 Closes: hyperledger-cacti#2189 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
This PR/issue depends on:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@outSH Please squash+rebase+fix the conflicts
39a463a
to
db6a2c7
Compare
@petermetz Done, I've also done some improvements in sample apps during testing. Ready for merging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash+rebase+fix the conflicts
@petermetz Done, I've also done some improvements in sample apps during testing.
Ready for merging
@outSH LGTM, thank you very much!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash+rebase+fix the conflicts
@petermetz Done, I've also done some improvements in sample apps during testing.
Ready for merging
@outSH LGTM, thank you very much!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@outSH Please resolve the merge conflicts and then pass it back for review.
db6a2c7
to
dcdd9ab
Compare
@petermetz Done, all should work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@outSH LGTM, thank you!
- Upgrade web3 package used by go-ethereum-socketio connector from "0.20.7" to "1.8.1" - Major cleanup and refactor of go-ethereum-socketio logic, without affecting the current functionalities. - Add safety checking of method called in web3Eth and contract functions. Add tests to check if it works. - Add websocket eth RPC support and some helper functions in openethereum-test-ledger. - Expose WS RPC in geth-testnet, use this port in sample apps (required to monitor new blocks in updated web3.js) - Change raw use of sendRawTransaction to sendSignedTransaction in sample apps in order to conform to new web3.js version. - Add safeStringifyException to cactus-common that can be used by validators to sanitize response errors. - Refactor socketio-based validators to use safeStringifyException. - Adjust connector README files. - Improve cleanup after running sample apps - Fix discounted-cartrade sample ethereum transfer and checking Closes hyperledger-cacti#2088 Depends on hyperledger-cacti#2053 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
dcdd9ab
to
6303544
Compare
- Add a new package `@hyperledger/cactus-test-verifier-client` for verifier-client stress and functional tests that involve multiple packages. - Add stress test for verifier-client that reports memory usage of repeated operation on `cactus-plugin-ledger-connector-go-ethereum-socketio` connector plugin. - Fix a memory leak in `SocketIOApiClient` - free socket listeners when they are no longer needed. - Fix `cactus-plugin-ledger-connector-go-ethereum-socketio` - use single a web3 connection (with keep-alive/reconnect) instead of spawning new one for each request. Previous solution was causing connection issues in stress testing. Depends on: hyperledger-cacti#2089 Closes: hyperledger-cacti#2189 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Add a new package `@hyperledger/cactus-test-verifier-client` for verifier-client stress and functional tests that involve multiple packages. - Add stress test for verifier-client that reports memory usage of repeated operation on `cactus-plugin-ledger-connector-go-ethereum-socketio` connector plugin. - Fix a memory leak in `SocketIOApiClient` - free socket listeners when they are no longer needed. - Fix `cactus-plugin-ledger-connector-go-ethereum-socketio` - use single a web3 connection (with keep-alive/reconnect) instead of spawning new one for each request. Previous solution was causing connection issues in stress testing. Depends on: hyperledger-cacti#2089 Closes: hyperledger-cacti#2189 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Add a new package `@hyperledger/cactus-test-verifier-client` for verifier-client stress and functional tests that involve multiple packages. - Add stress test for verifier-client that reports memory usage of repeated operation on `cactus-plugin-ledger-connector-go-ethereum-socketio` connector plugin. - Fix a memory leak in `SocketIOApiClient` - free socket listeners when they are no longer needed. - Fix `cactus-plugin-ledger-connector-go-ethereum-socketio` - use single a web3 connection (with keep-alive/reconnect) instead of spawning new one for each request. Previous solution was causing connection issues in stress testing. Depends on: hyperledger-cacti#2089 Closes: hyperledger-cacti#2189 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Add a new package `@hyperledger/cactus-test-verifier-client` for verifier-client stress and functional tests that involve multiple packages. - Add stress test for verifier-client that reports memory usage of repeated operation on `cactus-plugin-ledger-connector-go-ethereum-socketio` connector plugin. - Fix a memory leak in `SocketIOApiClient` - free socket listeners when they are no longer needed. - Fix `cactus-plugin-ledger-connector-go-ethereum-socketio` - use single a web3 connection (with keep-alive/reconnect) instead of spawning new one for each request. Previous solution was causing connection issues in stress testing. Depends on: hyperledger-cacti#2089 Closes: hyperledger-cacti#2189 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Add a new package `@hyperledger/cactus-test-verifier-client` for verifier-client stress and functional tests that involve multiple packages. - Add stress test for verifier-client that reports memory usage of repeated operation on `cactus-plugin-ledger-connector-go-ethereum-socketio` connector plugin. - Fix a memory leak in `SocketIOApiClient` - free socket listeners when they are no longer needed. - Fix `cactus-plugin-ledger-connector-go-ethereum-socketio` - use single a web3 connection (with keep-alive/reconnect) instead of spawning new one for each request. Previous solution was causing connection issues in stress testing. Depends on: #2089 Closes: #2189 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
without affecting the current functionalities.
Add tests to check if it works.
(required to monitor new blocks in updated web3.js)
in order to conform to new web3.js version.
to sanitize response errors.
Closes #2088
Depends on #2053
Signed-off-by: Michal Bajer michal.bajer@fujitsu.com
Please review only the last commit, the rest are dependencies that should be merged in separate PRs.