[Node/Sync] Unify sync-core identity on Starfish user_id#3494
Draft
Herklos wants to merge 1 commit into
Draft
Conversation
f414026 to
dc1f01b
Compare
…s-storage-key Root cause: the node wrote sync data under the EVM address (write path) but read it back under the Starfish user_id (read path), so every pull from mobile returned empty. Changes: - server.py: stop re-deriving EVM address in _user_actions_after_write; pass the Starfish identity (user_id) directly to execute_user_action. - abstract_local_collection_provider.py: _get_wallet_private_key now looks up by user_id via get_wallet_by_user_id instead of the EVM address. - Rename wallet_address → user_id throughout the execution chain: workflow params (UserActionWorkflowInputs/Output), executor base + all subclasses, models.py, octobot_flow_client.py, protocol layer, scheduler.py, workflows_util.py. - _sanitize_address → _sanitize_storage_key (cosmetic, matches new identity). - automation_workflow.py: add _user_id_to_evm() to translate user_id back to EVM address at the OctoBotActionsJob boundary (CommunityRepository still needs EVM). - Tests: update all mocks and assertions to use get_wallet_by_user_id / user_id; add wallet import + CommunityAuthentication mock to DCA functional tests so _user_id_to_evm() resolves correctly; fix pre-existing failures unrelated to this change (encryption setup, duplicate import_wallet, retry cap). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dc1f01b to
b1cbd08
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.