Skip to content

House keeping#10

Open
utx0 wants to merge 7 commits into
brytelands:mainfrom
mettadata:main
Open

House keeping#10
utx0 wants to merge 7 commits into
brytelands:mainfrom
mettadata:main

Conversation

@utx0

@utx0 utx0 commented Jan 28, 2026

Copy link
Copy Markdown
  • Fixed: fmt issues
  • Fixed: clippy issues
  • Fixed: deprecation warning with the agave-unstable-api feature acknowledges we're using unstable APIs and are prepared for potential breaking changes

utx0 and others added 7 commits January 28, 2026 13:32
- Add agave-unstable-api feature to solana-transaction-status dependency
  This suppresses deprecation warnings about Solana 4.0 API changes
- Remove unused 'debug' import from sologger_log_context

These changes acknowledge that we're using Solana's unstable API surface
and are prepared for potential breaking changes in future versions.
…coded_transaction

- Change from_ui_confirmed_block to accept &UiConfirmedBlock instead of owned
- Replace tx.meta.to_owned().unwrap() with tx.meta.as_ref().unwrap() to
  eliminate 552M String::clone calls per session
- Update benchmark to pass reference

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…gregator)

When ProgramsSelector filters by specific programs, parse_logs broke out
of the loop on depth mismatch — e.g., when PumpSwap invoke [2] appeared
inside Jupiter invoke [1] (not monitored). The depth tracker expected [1]
but found [2], causing all CPI event data to be silently dropped.

Now adjusts current_depth to match the actual invoke level when filtering,
allowing CPI events to be captured normally. Adds tests for single and
multiple CPI invocations through non-monitored aggregator programs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use saturating_sub(1) for current_depth decrement to prevent
  "attempt to subtract with overflow" when CPI depth tracking
  gets misaligned (e.g., Jupiter CPI invocations)
- Guard all call_ids[call_ids.len() - 1] accesses with .last()
  to prevent "index out of bounds" panic on empty vec
- Guard call_stack access in program_return with .last()
- Guard call_stack.pop().unwrap() in program_failed_result

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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