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

View File

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