Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,53 +49,6 @@ where
.withdrawal_transactions_per_block_limit,
"No queued withdrawal documents found to pool into transactions"
);
let all_documents = self
.drive
.fetch_oldest_withdrawal_documents(transaction, platform_version)?;
if all_documents.is_empty() {
tracing::debug!(
height = block_info.height,
"No withdrawal documents found at all"
);
} else if tracing::enabled!(tracing::Level::DEBUG) {
// Count documents by status
let queued_count = all_documents
.get(&(withdrawals_contract::WithdrawalStatus::QUEUED as u8))
.map(|v| v.len())
.unwrap_or(0);
let pooled_count = all_documents
.get(&(withdrawals_contract::WithdrawalStatus::POOLED as u8))
.map(|v| v.len())
.unwrap_or(0);
let broadcasted_count = all_documents
.get(&(withdrawals_contract::WithdrawalStatus::BROADCASTED as u8))
.map(|v| v.len())
.unwrap_or(0);
let complete_count = all_documents
.get(&(withdrawals_contract::WithdrawalStatus::COMPLETE as u8))
.map(|v| v.len())
.unwrap_or(0);
let expired_count = all_documents
.get(&(withdrawals_contract::WithdrawalStatus::EXPIRED as u8))
.map(|v| v.len())
.unwrap_or(0);
let total_documents = queued_count
+ pooled_count
+ broadcasted_count
+ complete_count
+ expired_count;

tracing::debug!(
height = block_info.height,
total_documents,
queued_count,
pooled_count,
broadcasted_count,
complete_count,
expired_count,
"Found withdrawal documents grouped by status"
);
}
return Ok(());
}

Expand Down
Loading