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:
Luke Parker
2023-11-22 04:43:49 -05:00
parent 9df8c9476e
commit 07c657306b
3 changed files with 28 additions and 75 deletions

View File

@@ -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,