Skip to content

Commit

Permalink
withdrawal limits done
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Sep 29, 2024
1 parent 8af069d commit 802811c
Show file tree
Hide file tree
Showing 13 changed files with 577 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
) -> Result<UnsignedWithdrawalTxs, Error> {
let mut drive_operations: Vec<DriveOperation> = vec![];

// Get withdrawal_transactions_per_block_limit (normally 16) latest withdrawal transactions from the queue
// Get withdrawal_transactions_per_block_limit (normally 4) latest withdrawal transactions from the queue
let untied_withdrawal_transactions = self.drive.dequeue_untied_withdrawal_transactions(
platform_version
.system_limits
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ where
}
let documents = self.drive.fetch_oldest_withdrawal_documents_by_status(
withdrawals_contract::WithdrawalStatus::QUEUED.into(),
DEFAULT_QUERY_LIMIT,
platform_version
.system_limits
.withdrawal_transactions_per_block_limit,
transaction,
platform_version,
)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ where
) -> Result<(), Error> {
let documents = self.drive.fetch_oldest_withdrawal_documents_by_status(
withdrawals_contract::WithdrawalStatus::QUEUED.into(),
DEFAULT_QUERY_LIMIT,
platform_version
.system_limits
.withdrawal_transactions_per_block_limit,
transaction,
platform_version,
)?;
Expand Down
Loading

0 comments on commit 802811c

Please sign in to comment.