Skip to content

Conversation

@two-heart
Copy link
Contributor

we should took the reference, so this is not the NULL check we want

@github-actions
Copy link

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.051242 s 0.051314 s 0.141%
backtest mainnet-368528500-perf snapshot load NaN s NaN s NaN%
backtest mainnet-368528500-perf total elapsed 51.241817 s 51.313839 s 0.141%
firedancer mem usage with mainnet.toml 1008.31 GiB 1008.31 GiB 0.000%

@two-heart two-heart requested a review from ripatel-fd January 29, 2026 20:29
fd_accdb_rw_t const * ref = &txn_out->accounts.account[ idx_in_txn ];

if( !ref || instr->is_duplicate[i] ) {
if( !ref->meta || instr->is_duplicate[i] ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not look correct either way. All references in [0,instr->acct_cnt) should have a valid meta. For non-existent accounts, it points to zeros but it's still a valid pointer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At this point the acc should always exist, so removing this check

@two-heart two-heart force-pushed the two-heart/null-ref-check branch from 78de22a to 51432f4 Compare February 3, 2026 16:43
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.051368 s 0.051513 s 0.282%
backtest mainnet-368528500-perf snapshot load NaN s NaN s NaN%
backtest mainnet-368528500-perf total elapsed 51.36769 s 51.512687 s 0.282%
firedancer mem usage with mainnet.toml 1056.31 GiB 1056.31 GiB 0.000%

@two-heart two-heart requested a review from ripatel-fd February 3, 2026 16:52
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.

3 participants