Skip to content

Conversation

@0x0ece
Copy link
Contributor

@0x0ece 0x0ece commented Dec 17, 2025

  • Added a few missing functions for chacha8
  • Made wsample configurable with chacha8 vs chacha20 (sampler->rng_algo)
  • Made sdest use chacha8 vs chacha20 based on staked wsample. Note: leader schedule (that also uses wsample) doesn’t need chacha8
  • Added frank feature gate and cleaned up existing ones
  • Put all together in shred tile (note: works for frank, doesn’t work yet for full client)
  • Added a conformance test with Rust code to generate the C input - found a bug 🎉

Agave: anza-xyz/agave#7353

ripatel-fd
ripatel-fd previously approved these changes Dec 17, 2025
#define SORT_NAME sort_pubkey
#define SORT_KEY_T fd_shred_dest_weighted_t
#define SORT_BEFORE(a,b) (memcmp( (a).pubkey.uc, (b).pubkey.uc, 32UL )<0)
#define SORT_BEFORE(a,b) (memcmp( (a).pubkey.uc, (b).pubkey.uc, 32UL )>0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this is a bug...

@firedancer-io firedancer-io deleted a comment from github-actions bot Dec 18, 2025
@firedancer-io firedancer-io deleted a comment from github-actions bot Dec 18, 2025
@firedancer-io firedancer-io deleted a comment from github-actions bot Dec 18, 2025
@firedancer-io firedancer-io deleted a comment from github-actions bot Dec 18, 2025
@github-actions
Copy link

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.051658 s 0.05152 s -0.267%
backtest mainnet-368528500-perf snapshot load 1.684 s 1.687 s 0.178%
backtest mainnet-368528500-perf total elapsed 51.658053 s 51.519905 s -0.267%
firedancer mem usage with mainnet.toml 1005.23 GiB 1005.23 GiB 0.000%

}

/* ============================================================================
RUST REFERENCE IMPLEMENTATION
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably move to contrib and make it an actual .rs file so we can compile and run it

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