Skip to content

snapshots: send manifest #5631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cali-jumptrading
Copy link
Contributor

@cali-jumptrading cali-jumptrading commented Jul 11, 2025

make the snapin tile send the manifest every time it parses one.

@cali-jumptrading cali-jumptrading force-pushed the cali/snapshot-tiles-send-manifest branch from a57fa8d to 30b0971 Compare July 14, 2025 15:35
@cali-jumptrading cali-jumptrading marked this pull request as ready for review July 14, 2025 15:46
Copy link
Contributor

@ibhatt-jumptrading ibhatt-jumptrading left a comment

Choose a reason for hiding this comment

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

As discussed in pm, needs this so we don't try to clone the same bank twice

/* If the bank already exists, that means that we have already
restored the bank for this slot and we can return out. */
fd_bank_t * bank = fd_banks_get_bank( slot_ctx->banks, manifest->bank.slot );
if( FD_UNLIKELY( !!bank ) ) {
FD_LOG_NOTICE(( "The bank for slot %lu already exists. Skipping manifest restore", manifest->bank.slot ));
slot_ctx->bank = bank;
return slot_ctx;
}

@cali-jumptrading cali-jumptrading force-pushed the cali/snapshot-tiles-send-manifest branch 2 times, most recently from 9e16286 to 1ab248c Compare July 14, 2025 16:19
@cali-jumptrading cali-jumptrading force-pushed the cali/snapshot-tiles-send-manifest branch from 1ab248c to 7bee0a3 Compare July 14, 2025 16:27
@cali-jumptrading cali-jumptrading force-pushed the cali/snapshot-tiles-send-manifest branch 7 times, most recently from 91f3978 to 02bee6c Compare July 14, 2025 22:10
lidatong
lidatong previously approved these changes Jul 14, 2025
Comment on lines -211 to +250
snapshot_reset_acc_data( fd_snapshot_parser_t * parser FD_PARAM_UNUSED,
snapshot_reset_acc_data( fd_snapshot_parser_t * parser,
void * _ctx ) {
(void)parser;
Copy link
Member

Choose a reason for hiding this comment

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

why FD_PARAM_UNUSED to (void)?

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 just thought being consistent with using (void) was better. let me know if you disagree

@cali-jumptrading cali-jumptrading force-pushed the cali/snapshot-tiles-send-manifest branch 4 times, most recently from 2f7580b to b364e4b Compare July 15, 2025 20:10
@cali-jumptrading cali-jumptrading force-pushed the cali/snapshot-tiles-send-manifest branch from b364e4b to 6ee879d Compare July 15, 2025 20:55
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