@@ -65,6 +65,7 @@ struct fd_ledger_args {
65
65
char const * shredcap ; /* path to replay using shredcap instead of rocksdb */
66
66
int abort_on_mismatch ; /* determine if execution should abort on mismatch*/
67
67
char const * capture_fpath ; /* solcap: path for solcap file to be created */
68
+ ulong solcap_start_slot ; /* solcap capture start slot */
68
69
int capture_txns ; /* solcap: determine if transaction results should be captured for solcap*/
69
70
char const * checkpt_path ; /* path to dump funk wksp checkpoints during execution*/
70
71
ulong checkpt_freq ; /* how often funk wksp checkpoints will be dumped (defaults to never) */
@@ -679,6 +680,7 @@ fd_ledger_main_setup( fd_ledger_args_t * args ) {
679
680
args -> capture_ctx = fd_capture_ctx_new ( capture_ctx_mem );
680
681
681
682
args -> capture_ctx -> checkpt_freq = ULONG_MAX ;
683
+ args -> capture_ctx -> solcap_start_slot = args -> solcap_start_slot ;
682
684
683
685
if ( has_solcap ) {
684
686
capture_file = fopen ( args -> capture_fpath , "w+" );
@@ -1390,6 +1392,7 @@ initial_setup( int argc, char ** argv, fd_ledger_args_t * args ) {
1390
1392
char const * checkpt = fd_env_strip_cmdline_cstr ( & argc , & argv , "--checkpt" , NULL , NULL );
1391
1393
char const * checkpt_funk = fd_env_strip_cmdline_cstr ( & argc , & argv , "--checkpt-funk" , NULL , NULL );
1392
1394
char const * capture_fpath = fd_env_strip_cmdline_cstr ( & argc , & argv , "--capture-solcap" , NULL , NULL );
1395
+ ulong solcap_start_slot = fd_env_strip_cmdline_ulong ( & argc , & argv , "--solcap-start-slot" , NULL , 0 );
1393
1396
int capture_txns = fd_env_strip_cmdline_int ( & argc , & argv , "--capture-txns" , NULL , 1 );
1394
1397
char const * checkpt_path = fd_env_strip_cmdline_cstr ( & argc , & argv , "--checkpt-path" , NULL , NULL );
1395
1398
ulong checkpt_freq = fd_env_strip_cmdline_ulong ( & argc , & argv , "--checkpt-freq" , NULL , ULONG_MAX );
@@ -1497,6 +1500,7 @@ initial_setup( int argc, char ** argv, fd_ledger_args_t * args ) {
1497
1500
args -> verify_acc_hash = verify_acc_hash ;
1498
1501
args -> trash_hash = trash_hash ;
1499
1502
args -> capture_fpath = capture_fpath ;
1503
+ args -> solcap_start_slot = solcap_start_slot ;
1500
1504
args -> capture_txns = capture_txns ;
1501
1505
args -> checkpt_path = checkpt_path ;
1502
1506
args -> checkpt_freq = checkpt_freq ;
0 commit comments