Move where we check if we should delay reporting of Batches

This commit is contained in:
Luke Parker
2024-12-30 10:18:38 -05:00
parent 1de8136739
commit 458f4fe170
3 changed files with 82 additions and 62 deletions

View File

@@ -422,7 +422,7 @@ impl<
block: [u8; 32],
) {
// Don't cosign blocks with already retired keys
if Some(session.0) <= db::LatestRetiredSession::get(txn).map(|session| session.0) {
if Some(session.0) <= db::LatestRetiredSession::get(&txn).map(|session| session.0) {
return;
}
@@ -444,7 +444,7 @@ impl<
slash_report: &Vec<Slash>,
) {
// Don't sign slash reports with already retired keys
if Some(session.0) <= db::LatestRetiredSession::get(txn).map(|session| session.0) {
if Some(session.0) <= db::LatestRetiredSession::get(&txn).map(|session| session.0) {
return;
}