Remove CryptoNight V3

there is no v3 monero goes straight from v2 -> v4 I can only guess this is because of the way monero calculates what variant to use:

5900ed3706/src/cryptonote_core/cryptonote_tx_utils.cpp (L702)
This commit is contained in:
Boog900 2023-09-07 21:24:33 +01:00
parent b4711c7118
commit b243ff0021
No known key found for this signature in database
GPG key ID: 5401367FB7302004

View file

@ -15,15 +15,14 @@ pub enum Variant {
V0, V0,
V1, V1,
V2, V2,
V3, R { height: u64 },
V4 { height: u64 },
} }
impl Variant { impl Variant {
/// Returns the height of the block we are hashing, if thats relevant for this variant otherwise /// Returns the height of the block we are hashing, if thats relevant for this variant otherwise
/// `0` is returned. /// `0` is returned.
fn height(&self) -> u64 { fn height(&self) -> u64 {
if let Variant::V4 { height } = self { if let Variant::R { height } = self {
*height *height
} else { } else {
0 0
@ -35,8 +34,7 @@ impl Variant {
Variant::V0 => 0, Variant::V0 => 0,
Variant::V1 => 1, Variant::V1 => 1,
Variant::V2 => 2, Variant::V2 => 2,
Variant::V3 => 3, Variant::R { .. } => 4,
Variant::V4 { .. } => 4,
} }
} }
} }