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

@@ -5,10 +5,11 @@ use group::GroupEncoding;
use scale::{Encode, Decode, IoReader};
use borsh::{BorshSerialize, BorshDeserialize};
use serai_db::{Get, DbTxn, create_db};
use serai_db::{Get, DbTxn, create_db, db_channel};
use serai_primitives::Balance;
use serai_validator_sets_primitives::Session;
use serai_in_instructions_primitives::Batch;
use primitives::EncodableG;
use crate::{ScannerFeed, KeyFor, AddressFor};
@@ -40,6 +41,12 @@ create_db!(
}
);
db_channel!(
ScannerReport {
InternalBatches: <G: GroupEncoding>() -> (Session, EncodableG<G>, Batch),
}
);
pub(crate) struct ReturnInformation<S: ScannerFeed> {
pub(crate) address: AddressFor<S>,
pub(crate) balance: Balance,