Skip to content

fix(sdk): restore TRX market data and coordinate activation#340

Merged
CharlVS merged 1 commit intodevfrom
fix/trx-market-data-activation
Mar 25, 2026
Merged

fix(sdk): restore TRX market data and coordinate activation#340
CharlVS merged 1 commit intodevfrom
fix/trx-market-data-activation

Conversation

@CharlVS
Copy link
Copy Markdown
Collaborator

@CharlVS CharlVS commented Mar 25, 2026

Status

READY

Description

  • restore TRX market-data repository selection by retrying CoinGecko coin-list loading, increasing support-check timeout, and adding TRX fallback IDs for CoinGecko and CoinPaprika
  • coordinate shared asset activation so concurrent or already-active requests reuse the in-flight activation path instead of failing into polling fallbacks
  • add regression coverage for slow repository support checks, TRX alias resolution, and activation coordination entry points

Type of Change

  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • 🧹 Code refactor

Test plan

  • ran dart format on changed files
  • ran flutter analyze for the SDK repo; touched files are clean, repo still has unrelated pre-existing analyzer issues

Prevent CoinGecko support checks from poisoning repository selection and add TRX fallback IDs so price history can resolve. Deduplicate shared asset activation so already-active assets stop failing into polling fallbacks.
@CharlVS CharlVS merged commit 877bb57 into dev Mar 25, 2026
1 of 2 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79ff3f8da3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

'Activation already in progress for ${group.primary.id.name}',
);
try {
await primaryCompleter.future;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Guard joined activations against unresolved leader completer

A second activation request now blocks on primaryCompleter.future, but that completer is not guaranteed to complete if the original activation stream is cancelled by its subscriber before reaching _handleActivationComplete or the exception handler. In that case the async* body exits via finally, _cleanupActivation removes the map entry, and joined callers keep awaiting forever, causing hanging activation requests for concurrent callers.

Useful? React with 👍 / 👎.

@github-actions
Copy link
Copy Markdown
Contributor

Visit the preview URL for this PR (updated for commit 79ff3f8):

https://komodo-playground--pr340-fix-trx-market-data-z274v776.web.app

(expires Wed, 01 Apr 2026 22:37:40 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2bfedd77fdea45b25ba7c784416e81f177aa5c47

CharlVS added a commit that referenced this pull request Apr 1, 2026
Prevent CoinGecko support checks from poisoning repository selection and add TRX fallback IDs so price history can resolve. Deduplicate shared asset activation so already-active assets stop failing into polling fallbacks.
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.

1 participant