mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Rename main codec to reth db codec (#9501)
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
use crate::PruneMode;
|
||||
use alloy_primitives::{BlockNumber, TxNumber};
|
||||
use reth_codecs::{main_codec, Compact};
|
||||
use reth_codecs::{reth_codec, Compact};
|
||||
|
||||
/// Saves the pruning progress of a stage.
|
||||
#[main_codec]
|
||||
#[reth_codec]
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
#[cfg_attr(test, derive(Default))]
|
||||
pub struct PruneCheckpoint {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
use crate::{segment::PrunePurpose, PruneSegment, PruneSegmentError};
|
||||
use alloy_primitives::BlockNumber;
|
||||
use reth_codecs::{main_codec, Compact};
|
||||
use reth_codecs::{reth_codec, Compact};
|
||||
|
||||
/// Prune mode.
|
||||
#[main_codec]
|
||||
#[reth_codec]
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum PruneMode {
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
use crate::MINIMUM_PRUNING_DISTANCE;
|
||||
use derive_more::Display;
|
||||
use reth_codecs::{main_codec, Compact};
|
||||
use reth_codecs::{reth_codec, Compact};
|
||||
use thiserror::Error;
|
||||
|
||||
/// Segment of the data that can be pruned.
|
||||
#[main_codec]
|
||||
#[reth_codec]
|
||||
#[derive(Debug, Display, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
||||
pub enum PruneSegment {
|
||||
/// Prune segment responsible for the `TransactionSenders` table.
|
||||
|
||||
Reference in New Issue
Block a user