feat: integrate generic primitives into pruner (#12995)

This commit is contained in:
Arsenii Kulikov
2024-11-29 08:56:48 +04:00
committed by GitHub
parent 9fe459e2ef
commit 3f9816e1c4
11 changed files with 65 additions and 40 deletions

View File

@ -2,7 +2,7 @@ use core::fmt;
use crate::{
Block, BlockBody, BlockHeader, FullBlock, FullBlockBody, FullBlockHeader, FullReceipt,
FullSignedTx, FullTxType, MaybeArbitrary, MaybeSerde,
FullSignedTx, FullTxType, MaybeArbitrary, MaybeSerde, Receipt,
};
/// Configures all the primitive types of the node.
@ -38,17 +38,7 @@ pub trait NodePrimitives:
+ MaybeArbitrary
+ 'static;
/// A receipt.
type Receipt: Send
+ Sync
+ Unpin
+ Clone
+ Default
+ fmt::Debug
+ PartialEq
+ Eq
+ MaybeSerde
+ MaybeArbitrary
+ 'static;
type Receipt: Receipt;
}
/// Helper trait that sets trait bounds on [`NodePrimitives`].
pub trait FullNodePrimitives