mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Move where we check if we should delay reporting of Batches
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user