dev-api-aliases-v2 #6
Reference in New Issue
Block a user
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.