-
Notifications
You must be signed in to change notification settings - Fork 217
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
Store delegation reward account balances in the database #1768
Conversation
5e078a6
to
fa9ff16
Compare
40b5f06
to
6483eb6
Compare
|
||
setupWatchers | ||
:: Tracer IO (WatcherLog e) | ||
-> TQueue IO v |
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.
There's already a lof of concurrent mutable variables down there, since the function only needs an accessor on the tip, I'd actually change this for just a IO v
and not even mention the TQueue
here.
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.
OK good idea
78f5150
to
8574e98
Compare
90c5dba
to
f42de76
Compare
7184497
to
5102817
Compare
bors r+ |
1768: Store delegation reward account balances in the database r=KtorZ a=rvl ### Issue Number ADP-302 / #1750 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer ### Comments - [ ] STAKE_POOLS_JOIN_04 test passes Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]>
Build failed |
bors retry |
1768: Store delegation reward account balances in the database r=KtorZ a=rvl ### Issue Number ADP-302 / #1750 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer ### Comments - [ ] STAKE_POOLS_JOIN_04 test passes Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]>
5102817
to
caf9b46
Compare
Canceled |
bors r+ |
1768: Store delegation reward account balances in the database r=KtorZ a=rvl ### Issue Number ADP-302 / #1750 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer ### Comments - [ ] STAKE_POOLS_JOIN_04 test passes Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: IOHK <[email protected]>
Build failed |
bors retry |
1768: Store delegation reward account balances in the database r=KtorZ a=rvl ### Issue Number ADP-302 / #1750 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer ### Comments - [ ] STAKE_POOLS_JOIN_04 test passes Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: IOHK <[email protected]>
Build failed |
tryBuild failed |
bors r+ |
1768: Store delegation reward account balances in the database r=rvl a=rvl ### Issue Number ADP-302 / #1750 / #1759 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
These wallet can be either Byron or Shelley wallets, so they don't necessarily have rewards capability.
bors r- |
Canceled |
(just have some little changes to push) |
7532fab
to
c869327
Compare
bors r+ |
1768: Store delegation reward account balances in the database r=KtorZ a=rvl ### Issue Number ADP-302 / #1750 / #1759 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
Our intuition may be wrong here, and we need to investigate this.
Canceled |
bors r+ |
1768: Store delegation reward account balances in the database r=KtorZ a=rvl ### Issue Number ADP-302 / #1750 / #1759 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
Build failed |
bors retry |
1768: Store delegation reward account balances in the database r=KtorZ a=rvl ### Issue Number ADP-302 / #1750 / #1759 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
Build failed |
Integration test failure seems to be due to a rolled back transaction ⇒ ADP-93. Retrying. bors r+ |
1768: Store delegation reward account balances in the database r=rvl a=rvl ### Issue Number ADP-302 / #1750 / #1759 ### Overview Turns out querying reward account balances can be slow. This is not good if it's done when listing/getting wallets. Better to do these queries in a separate thread and cache the results in the database. - [x] Add new database table for the latest known wallet reward account balance. - [x] Use the database when getting the reward account balance. - [x] Add a network layer method to watch the node tip. - [x] Update the account balance in each wallet when the node tip changes (asynchronously). - [x] Store reward account balance in db as it arrives. - [x] Adapt Jörmungandr network layer Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
Build failed |
Merging, the failure above seems related to something else: #1831 |
Issue Number
ADP-302 / #1750 / #1759
Overview
Turns out querying reward account balances can be slow.
This is not good if it's done when listing/getting wallets.
Better to do these queries in a separate thread and cache the results in the database.