-
Notifications
You must be signed in to change notification settings - Fork 299
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
base: main
Are you sure you want to change the base?
snapshots: send manifest #5631
Conversation
a57fa8d
to
30b0971
Compare
There was a problem hiding this 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;
}
9e16286
to
1ab248c
Compare
1ab248c
to
7bee0a3
Compare
91f3978
to
02bee6c
Compare
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; |
There was a problem hiding this comment.
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)
?
There was a problem hiding this comment.
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
2f7580b
to
b364e4b
Compare
b364e4b
to
6ee879d
Compare
make the snapin tile send the manifest every time it parses one.