Remove unused code in the Ethereum processor

This commit is contained in:
Luke Parker
2024-09-19 02:46:32 -04:00
parent 855e53164e
commit 1a08d50e16
4 changed files with 6 additions and 15 deletions

View File

@@ -16,19 +16,10 @@ use crate::{output::Output, transaction::Eventuality};
pub(crate) struct Epoch {
// The hash of the block which ended the prior Epoch.
pub(crate) prior_end_hash: [u8; 32],
// The first block number within this Epoch.
pub(crate) start: u64,
// The hash of the last block within this Epoch.
pub(crate) end_hash: [u8; 32],
}
impl Epoch {
// The block number of the last block within this epoch.
fn end(&self) -> u64 {
self.start + 31
}
}
impl primitives::BlockHeader for Epoch {
fn id(&self) -> [u8; 32] {
self.end_hash

View File

@@ -102,9 +102,9 @@ impl SignMachine<Transaction> for ActionSignMachine {
unimplemented!()
}
fn from_cache(
params: Self::Params,
keys: Self::Keys,
cache: CachedPreprocess,
_params: Self::Params,
_keys: Self::Keys,
_cache: CachedPreprocess,
) -> (Self, Self::Preprocess) {
unimplemented!()
}