Add BigTableUploadService
This commit is contained in:
parent
bc7731b969
commit
bafdcf24f5
|
@ -54,11 +54,16 @@ impl BigTableUploadService {
|
|||
.unwrap()
|
||||
.highest_confirmed_root();
|
||||
|
||||
if max_confirmed_root == starting_slot {
|
||||
std::thread::sleep(std::time::Duration::from_secs(1));
|
||||
continue;
|
||||
}
|
||||
|
||||
let result = runtime.block_on(solana_ledger::bigtable_upload::upload_confirmed_blocks(
|
||||
blockstore.clone(),
|
||||
bigtable_ledger_storage.clone(),
|
||||
starting_slot,
|
||||
None,
|
||||
Some(max_confirmed_root),
|
||||
true,
|
||||
));
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ pub async fn upload_confirmed_blocks(
|
|||
}
|
||||
};
|
||||
|
||||
if i % NUM_BLOCKS_TO_UPLOAD_IN_PARALLEL == 0 {
|
||||
if i > 0 && i % NUM_BLOCKS_TO_UPLOAD_IN_PARALLEL == 0 {
|
||||
info!(
|
||||
"{}% of blocks processed ({}/{})",
|
||||
i * 100 / blocks_to_upload.len(),
|
||||
|
|
Loading…
Reference in New Issue