-
Notifications
You must be signed in to change notification settings - Fork 366
solcap v2: updates to solcap #6829
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?
Conversation
8608f30 to
3b04448
Compare
7377f26 to
2a98888
Compare
6c695ee to
f9377e0
Compare
Performance Measurements ⏳
|
f9377e0 to
e8dbf07
Compare
Performance Measurements ⏳
|
e8dbf07 to
3840d97
Compare
Performance Measurements ⏳
|
3840d97 to
a0970ba
Compare
Performance Measurements ⏳
|
ibhatt-jumptrading
left a comment
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.
logic looks good, just need to clean up the code
i don't have enough expertise to review the stem changes
a0970ba to
32f4b21
Compare
Performance Measurements ⏳
|
0a4f99e to
a484fbb
Compare
Performance Measurements ⏳
|
a484fbb to
1a97cfa
Compare
Performance Measurements ⏳
|
1a97cfa to
00e1be2
Compare
Performance Measurements ⏳
|
00e1be2 to
d5b7148
Compare
Performance Measurements ⏳
|
710f6e4 to
d5b7148
Compare
| "type": "struct", | ||
| "fields": [ | ||
| { "name": "lamports", "type": "ulong" }, | ||
| { "name": "rent_epoch", "type": "ulong" }, |
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 did this change?
| /* Add the capture tile to topo */ | ||
| /**********************************************************************/ | ||
| if (solcap_enabled) { | ||
| fd_topob_wksp( topo, "captur" ); |
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 do you need to capture anything in backtest?
| .slot = (uint32_t)msg_hdr->slot, | ||
| .txn_idx = msg_hdr->txn_idx | ||
| }; | ||
| fwrite( &int_hdr, sizeof(fd_solcap_chunk_int_hdr_t), 1UL, file ); |
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.
Need error code checking everywhere for stuff like this, even just FD_TEST the result is not err
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.
That is in one of the commits on the other branch which i will squash into this commit after fixing comments from this review.
| sizeof(fd_solcap_chunk_ftr_t)); | ||
|
|
||
| /* Serialize account chunk metadata */ | ||
| uint32_t block_len = (uint32_t)((unaligned_block_len + 3UL) & ~3UL); |
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.
| uint32_t block_len = (uint32_t)((unaligned_block_len + 3UL) & ~3UL); | |
| uint block_len = (uint)((unaligned_block_len + 3UL) & ~3UL); |
Use fd types everywhere please
|
|
||
| ctx->gui_enabled = fd_topo_find_tile( topo, "gui", 0UL )!=ULONG_MAX; | ||
|
|
||
| if( FD_UNLIKELY( strcmp( "", tile->replay.solcap_capture ) ) ) { |
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.
What is any of this for? It does not look like it's used
| fd_solcap_write_ftr( ctx->capture_ctx->capture, ctx->block_len ); | ||
|
|
||
| if (ctx->msg_set_sig == SOLCAP_WRITE_BANK_PREIMAGE) { | ||
| fflush(ctx->file); |
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.
check errors
| writer->account_idx = 0UL; | ||
| return 0; | ||
| FILE* | ||
| fd_solcap_file_verify( fd_solcap_writer_t * writer ) { |
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.
delete this
|
|
||
| ctl = fd_frag_meta_ctl( 0UL, 0UL, is_last ? 1UL : 0UL, 0UL ); | ||
|
|
||
| fd_mcache_publish( buf->mcache, buf->depth, buf->seq, 0UL, buf->chunk, msg_sz, ctl, 0UL, 0UL ); |
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.
you can just send the sz here
| ulong slot, | ||
| uchar const * data, | ||
| ulong data_sz) { | ||
| ctx->capture_link->vt->write_account_update(ctx, txn_idx, key, info, slot, data, data_sz); |
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.
FD_TEST( ctx );
New Solcap Version