@@ -198,22 +198,23 @@ impl MagicValidator {
198
198
config. validator_config . ledger . reset ,
199
199
) ?;
200
200
201
- let exit = Arc :: < AtomicBool > :: default ( ) ;
202
201
// SAFETY:
203
202
// this code will never panic as the ledger_path always appends the
204
203
// rocksdb directory to whatever path is preconfigured for the ledger,
205
204
// see `Ledger::do_open`, thus this path will always have a parent
206
- let adb_path = ledger
205
+ let ledger_parent_path = ledger
207
206
. ledger_path ( )
208
207
. parent ( )
209
208
. expect ( "ledger_path didn't have a parent, should never happen" ) ;
209
+
210
+ let exit = Arc :: < AtomicBool > :: default ( ) ;
210
211
let bank = Self :: init_bank (
211
212
Some ( geyser_manager. clone ( ) ) ,
212
213
& genesis_config,
213
214
& config. validator_config . accounts . db ,
214
215
config. validator_config . validator . millis_per_slot ,
215
216
validator_pubkey,
216
- adb_path ,
217
+ ledger_parent_path ,
217
218
ledger. get_max_blockhash ( ) . map ( |( slot, _) | slot) ?,
218
219
) ?;
219
220
@@ -310,10 +311,15 @@ impl MagicValidator {
310
311
& faucet_keypair. pubkey ( ) ,
311
312
) ;
312
313
314
+ let committor_persist_path =
315
+ ledger_parent_path. join ( "committor_service.sqlite" ) ;
316
+ debug ! (
317
+ "Committor service persists to: {}" ,
318
+ committor_persist_path. display( )
319
+ ) ;
313
320
let committor_service = Arc :: new ( CommittorService :: try_start (
314
321
identity_keypair. insecure_clone ( ) ,
315
- // TODO: @@@ config or inside ledger dir
316
- "/tmp/committor_service.sqlite" ,
322
+ committor_persist_path,
317
323
ChainConfig {
318
324
rpc_uri : remote_rpc_config. url ( ) . to_string ( ) ,
319
325
commitment : remote_rpc_config
0 commit comments