mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Remove unused code in the Ethereum processor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user