Skip to content

Commit

Permalink
Restores batch_size arg for fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed May 16, 2024
1 parent 7f4b6c1 commit 97a2d8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/apps/src/lib/bench_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@ impl BenchShieldedCtx {
self.shielded,
&self.shell,
&StdIo,
1,
None,
None,
&[spending_key.into()],
Expand Down
1 change: 1 addition & 0 deletions crates/apps/src/lib/cli/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ impl CliApi {
chain_ctx.shielded,
&client,
&io,
args.batch_size,
args.start_query_height,
args.last_query_height,
&sks,
Expand Down
2 changes: 2 additions & 0 deletions crates/apps/src/lib/client/masp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub async fn syncing<
mut shielded: ShieldedContext<U>,
client: &C,
io: &IO,
batch_size: u64,
start_query_height: Option<BlockHeight>,
last_query_height: Option<BlockHeight>,
sks: &[ExtendedSpendingKey],
Expand All @@ -43,6 +44,7 @@ pub async fn syncing<
&logger,
start_query_height,
last_query_height,
batch_size,
sks,
fvks,
)
Expand Down
3 changes: 3 additions & 0 deletions crates/sdk/src/masp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ impl<U: ShieldedUtils + MaybeSend + MaybeSync> ShieldedContext<U> {
logger: &impl ProgressLogger<IO>,
start_query_height: Option<BlockHeight>,
last_query_height: Option<BlockHeight>,
// NOTE: do not remove this argument, it will be used once the indexer
// is ready
_batch_size: u64,
sks: &[ExtendedSpendingKey],
fvks: &[ViewingKey],
) -> Result<(), Error> {
Expand Down

0 comments on commit 97a2d8d

Please sign in to comment.