Skip to content

Conversation

@ripatel-fd
Copy link
Contributor

@ripatel-fd ripatel-fd commented Jan 27, 2026

  • Only consider accounts owned by the feature program for
    activation (fixes a stray FD_LOG_WARNING for account
    9LZdXeKGeBV6hRLdxS1rHbHoEUsKqesCC2ZAPTPKJAbK, which was
    initialized a year ago, but is still owned by the system
    program)
  • Do not crash with FD_LOG_CRIT if the feature account is too
    small to activate, log a warning instead
  • Simplify serialization logic

@github-actions
Copy link

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.070385 s 0.070532 s 0.209%
backtest mainnet-368528500-perf snapshot load NaN s NaN s NaN%
backtest mainnet-368528500-perf total elapsed 70.385357 s 70.532126 s 0.209%
firedancer mem usage with mainnet.toml 1004.29 GiB 1004.29 GiB 0.000%

- Only consider accounts owned by the feature program for
  activation (fixes a stray FD_LOG_WARNING for account
  9LZdXeKGeBV6hRLdxS1rHbHoEUsKqesCC2ZAPTPKJAbK, which was
  initialized a year ago, but is still owned by the system
  program)
- Do not crash with FD_LOG_CRIT if the feature account is too
  small to activate, log a warning instead
- Simplify serialization logic

Reported-by: man0s <man0s@temporal.xyz>
@github-actions
Copy link

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.051728 s 0.051753 s 0.048%
backtest mainnet-368528500-perf snapshot load NaN s NaN s NaN%
backtest mainnet-368528500-perf total elapsed 51.727961 s 51.752884 s 0.048%
firedancer mem usage with mainnet.toml 1004.29 GiB 1004.29 GiB 0.000%

@ripatel-fd ripatel-fd enabled auto-merge (rebase) January 27, 2026 18:36
if( FD_UNLIKELY( !fd_feature_decode( &feature, fd_accdb_ref_data_const( ro ), fd_accdb_ref_data_sz( ro ) ) ) ) {
FD_LOG_WARNING(( "cannot activate feature %s, corrupt account data", addr_b58 ));
FD_LOG_HEXDUMP_NOTICE(( "corrupt feature account", fd_accdb_ref_data_const( ro ), fd_accdb_ref_data_sz( ro ) ));
fd_accdb_close_ro( accdb, ro );
Copy link
Contributor

Choose a reason for hiding this comment

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

if feature account is malformed should we crash here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMO no because Agave doesn't crash either here

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.

4 participants