mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Remove duplicated genesis presence in Tributary Scanner DB keys
This wasted 32-bytes per every single entry in the DB (ignoring de-duplication possible by the DB layer).
This commit is contained in:
@@ -10,6 +10,8 @@ use tokio::sync::broadcast;
|
||||
use scale::{Encode, Decode};
|
||||
use serai_client::{validator_sets::primitives::ValidatorSet, subxt::utils::Encoded, Serai};
|
||||
|
||||
use serai_db::DbTxn;
|
||||
|
||||
use tributary::{
|
||||
TransactionKind, Transaction as TributaryTransaction, Block, TributaryReader,
|
||||
tendermint::{
|
||||
@@ -22,14 +24,10 @@ use crate::{
|
||||
Db,
|
||||
tributary::handle::{fatal_slash, handle_application_tx},
|
||||
processors::Processors,
|
||||
tributary::{TributarySpec, Transaction, EventDb},
|
||||
tributary::{TributarySpec, Transaction, LastBlock, EventDb},
|
||||
P2p,
|
||||
};
|
||||
|
||||
use super::LastBlock;
|
||||
|
||||
use serai_db::DbTxn;
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug, Encode, Decode)]
|
||||
pub enum RecognizedIdType {
|
||||
Batch,
|
||||
|
||||
Reference in New Issue
Block a user