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

NODE-2596 Optimised active leases #3884

Merged
merged 23 commits into from
Nov 30, 2023

Conversation

xrtm000
Copy link
Member

@xrtm000 xrtm000 commented Sep 29, 2023

No description provided.

@xrtm000 xrtm000 marked this pull request as ready for review October 2, 2023 08:47
@xrtm000 xrtm000 requested a review from phearnot as a code owner October 2, 2023 08:47
Copy link
Member

@phearnot phearnot left a comment

Choose a reason for hiding this comment

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

  • Instead of copying lease details to sender and recipient accounts, store only lease IDs (just like for address transactions).
  • Add a test which checks that cancelled leases are excluded from the response.
  • Add a test to check if rollback works (for both active and cancelled leases).

@@ -60,7 +53,8 @@ object CommonAccountsApi {
def apply(
compositeBlockchain: () => SnapshotBlockchain,
rdb: RDB,
blockchain: Blockchain
blockchain: Blockchain,
leaseStatesAreStoredByAddress: Boolean
Copy link
Member

Choose a reason for hiding this comment

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

unused?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

@xrtm000 xrtm000 requested a review from phearnot November 9, 2023 06:43
@xrtm000 xrtm000 added the wip label Nov 9, 2023
@xrtm000 xrtm000 removed the wip label Nov 9, 2023
@phearnot phearnot self-assigned this Nov 15, 2023
@phearnot phearnot force-pushed the node-2596-optimised-active-leases branch from 8f87f55 to d1e4bbd Compare November 30, 2023 07:15
@phearnot phearnot merged commit 4f0cbb2 into version-1.5.x Nov 30, 2023
1 of 2 checks passed
@phearnot phearnot deleted the node-2596-optimised-active-leases branch November 30, 2023 08:33
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.

5 participants