dev-api-aliases-v2 #6

Merged
lash merged 5 commits from dev-api-aliases-v2 into master 2025-01-23 15:28:06 +01:00
Member

PR Change

  • HTTPAccountService
    - Adds a UseApi bool field that allows switching between a local and remote api to resolve alias address
    - Adds a field to reference the StorageService.

  • Unties the assigned alias to a specific session id.

**PR Change** - HTTPAccountService - Adds a UseApi bool field that allows switching between a local and remote api to resolve alias address - Adds a field to reference the StorageService. - Unties the assigned alias to a specific session id.
carlos added 5 commits 2025-01-23 13:02:46 +01:00
lash reviewed 2025-01-23 14:09:58 +01:00
@ -356,4 +352,3 @@
if err != nil {
return err
}
das.db.SetSession(sessionId)
Owner

Please explain this change?

Please explain this change?
Author
Member

When the alias is saved,it will need to be retrieved by any other session id during Send.So when resolving the alias address,we don't really yet know the exact session id the alias belongs to beforehand.It made sense to me to keep this as an independent record that would be resolved in a similar way that we check if a certain public key is in the list of created accounts.

When the alias is saved,it will need to be retrieved by any other session id during Send.So when resolving the alias address,we don't really yet know the exact session id the alias belongs to beforehand.It made sense to me to keep this as an independent record that would be resolved in a similar way that we check if a certain public key is in the list of created accounts.
lash marked this conversation as resolved
lash merged commit 2181388f5b into master 2025-01-23 15:28:06 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-api#6
No description provided.