Skip to content
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

Light mode: reduce concurrency when retrieving data. #3341

Merged
merged 5 commits into from
Jun 20, 2022

Conversation

Unisay
Copy link
Contributor

@Unisay Unisay commented Jun 16, 2022

  • Replace concurrent traversals with sequential ones in order to minimize likelihood of hitting Too Many Requests error.
  • Fix bug with fetching Tx hashes for the same block multiple times.

Comments

Unfortunately the "Too Many Requests" error shows up anyway:
wallet.log

Issue Number

ADP-1651

@Unisay Unisay self-assigned this Jun 16, 2022
Copy link
Contributor

@HeinrichApfelmus HeinrichApfelmus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks! 😊 I have added a documenting comment to Consensual. Minor suggestions.

lib/core/src/Cardano/Wallet/Network/Light.hs Outdated Show resolved Hide resolved
lib/core/src/Cardano/Wallet/Network/Light.hs Show resolved Hide resolved
@Unisay Unisay force-pushed the yura/ADP-1651/fixes-optimisations branch from 224d903 to c205888 Compare June 20, 2022 07:44
@Unisay
Copy link
Contributor Author

Unisay commented Jun 20, 2022

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 20, 2022
3340: Update to cardano-node 1.35-rc3 r=Anviking a=sevanspowell

I have:

- Bumped the following dependencies to the `1.35.0-rc3` tag:
  - cardano-node
  - cardano-base
  - cardano-ledger
  - ouroboros-network
- Updated cardano-wallet code to build with `1.35.0-rc3` tag:
  - `evaluateTransactionExecutionUnits` has a new error type, updated
  `ErrAssignRedeemers` accordingly.
  - `SimpleScriptWitness` now takes a `SimpleScriptOrReferenceInput` instead of a
  `SimpleScript`, updated generators accordingly.
 
TODO:
- [x] Consider whether the `prop_balanceTransactionUnresolvedInputs` test makes sense anymore.
- [ ] Test the API output of `ErrAssignRedeemersTranslationError`.
- [x] Update readme compatibility matrix

### Issue Number

ADP-1907

3341: Light mode: reduce concurrency when retrieving data. r=Unisay a=Unisay

- [x] Replace concurrent traversals with sequential ones in order to minimize likelihood of hitting `Too Many Requests` error.
- [x] Fix bug with fetching Tx hashes for the same block multiple times.

### Comments

Unfortunately the "Too Many Requests" error shows up anyway:
[wallet.log](https://github.com/input-output-hk/cardano-wallet/files/8918830/wallet.log)

### Issue Number

ADP-1651


Co-authored-by: Samuel Evans-Powell <[email protected]>
Co-authored-by: Johannes Lund <[email protected]>
Co-authored-by: Yuriy Lazaryev <[email protected]>
Co-authored-by: Yura Lazarev <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 20, 2022

Build failed (retrying...):

iohk-bors bot added a commit that referenced this pull request Jun 20, 2022
3341: Light mode: reduce concurrency when retrieving data. r=Unisay a=Unisay

- [x] Replace concurrent traversals with sequential ones in order to minimize likelihood of hitting `Too Many Requests` error.
- [x] Fix bug with fetching Tx hashes for the same block multiple times.

### Comments

Unfortunately the "Too Many Requests" error shows up anyway:
[wallet.log](https://github.com/input-output-hk/cardano-wallet/files/8918830/wallet.log)

### Issue Number

ADP-1651


Co-authored-by: Yuriy Lazaryev <[email protected]>
Co-authored-by: Yura Lazarev <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 20, 2022

Build failed:

@Unisay
Copy link
Contributor Author

Unisay commented Jun 20, 2022

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 20, 2022
3341: Light mode: reduce concurrency when retrieving data. r=Unisay a=Unisay

- [x] Replace concurrent traversals with sequential ones in order to minimize likelihood of hitting `Too Many Requests` error.
- [x] Fix bug with fetching Tx hashes for the same block multiple times.

### Comments

Unfortunately the "Too Many Requests" error shows up anyway:
[wallet.log](https://github.com/input-output-hk/cardano-wallet/files/8918830/wallet.log)

### Issue Number

ADP-1651


Co-authored-by: Yuriy Lazaryev <[email protected]>
Co-authored-by: Yura Lazarev <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 20, 2022

Build failed:

@Unisay
Copy link
Contributor Author

Unisay commented Jun 20, 2022

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 20, 2022
3340: Update to cardano-node 1.35-rc3 r=Anviking a=sevanspowell

I have:

- Bumped the following dependencies to the `1.35.0-rc3` tag:
  - cardano-node
  - cardano-base
  - cardano-ledger
  - ouroboros-network
- Updated cardano-wallet code to build with `1.35.0-rc3` tag:
  - `evaluateTransactionExecutionUnits` has a new error type, updated
  `ErrAssignRedeemers` accordingly.
  - `SimpleScriptWitness` now takes a `SimpleScriptOrReferenceInput` instead of a
  `SimpleScript`, updated generators accordingly.
 
TODO:
- [x] Consider whether the `prop_balanceTransactionUnresolvedInputs` test makes sense anymore.
- [ ] Test the API output of `ErrAssignRedeemersTranslationError`.
- [x] Update readme compatibility matrix

### Issue Number

ADP-1907

3341: Light mode: reduce concurrency when retrieving data. r=Unisay a=Unisay

- [x] Replace concurrent traversals with sequential ones in order to minimize likelihood of hitting `Too Many Requests` error.
- [x] Fix bug with fetching Tx hashes for the same block multiple times.

### Comments

Unfortunately the "Too Many Requests" error shows up anyway:
[wallet.log](https://github.com/input-output-hk/cardano-wallet/files/8918830/wallet.log)

### Issue Number

ADP-1651


3344: Move `adjustNoSuchWallet` and `ErrNoSuchWallet` r=HeinrichApfelmus a=HeinrichApfelmus

### Issue number

ADP-1043

### Overview

This pull request is a pure refactoring.

We move `adjustNoSuchWallet` and `ErrNoSuchWallet` to the `Cardano.Wallet.DB.WalletState` module.


Co-authored-by: Samuel Evans-Powell <[email protected]>
Co-authored-by: Johannes Lund <[email protected]>
Co-authored-by: Yuriy Lazaryev <[email protected]>
Co-authored-by: Yura Lazarev <[email protected]>
Co-authored-by: Heinrich Apfelmus <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 20, 2022

Build failed (retrying...):

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 20, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit 39e4fa9 into master Jun 20, 2022
@iohk-bors iohk-bors bot deleted the yura/ADP-1651/fixes-optimisations branch June 20, 2022 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants