dev-api-aliases-v2 #6
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: grassrootseconomics/sarafu-api#6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev-api-aliases-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@ -356,4 +352,3 @@
if err != nil {
return err
}
das.db.SetSession(sessionId)
Please explain this change?
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.