From 6acbfdcc45c01687c3a6562b79606423a2ee12cf Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 14 Nov 2022 23:28:39 -0500 Subject: [PATCH] Support custom Monero protocol definitions --- coins/monero/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coins/monero/src/lib.rs b/coins/monero/src/lib.rs index b8344bf9..9f3b159c 100644 --- a/coins/monero/src/lib.rs +++ b/coins/monero/src/lib.rs @@ -59,6 +59,7 @@ pub enum Protocol { Unsupported, v14, v16, + Custom { ring_len: usize, bp_plus: bool }, } impl Protocol { @@ -68,6 +69,7 @@ impl Protocol { Protocol::Unsupported => panic!("Unsupported protocol version"), Protocol::v14 => 11, Protocol::v16 => 16, + Protocol::Custom { ring_len, .. } => *ring_len, } } @@ -78,6 +80,7 @@ impl Protocol { Protocol::Unsupported => panic!("Unsupported protocol version"), Protocol::v14 => false, Protocol::v16 => true, + Protocol::Custom { bp_plus, .. } => *bp_plus, } } }