Skip to content

Move Login business logic from gRPC API to Accountmanager#712

Closed
braginini wants to merge 13 commits into
mainfrom
refactor/move_grpcserver_logic_to_account_manager
Closed

Move Login business logic from gRPC API to Accountmanager#712
braginini wants to merge 13 commits into
mainfrom
refactor/move_grpcserver_logic_to_account_manager

Conversation

@braginini
Copy link
Copy Markdown
Collaborator

Describe your changes

The Management gRPC API has too much business logic happening while it has to be in the Account manager.
This also needs to make more requests to the store through the account manager.

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

braginini and others added 13 commits March 1, 2023 09:42
When we delete a peer from an account, we save the account in the file store.
The file store maintains peerID -> accountID and peerKey -> accountID indices.
Those can't be updated when we delete a peer because the store saves the whole account
without a peer already and has no access to the removed peer.
In this PR, we dynamically check if there are stale indices when GetAccountByPeerPubKey
and GetAccountByPeerID.
@braginini braginini closed this Mar 1, 2023
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