From 2b190851a77998c8d1dd7124df6d7db14f6d3cc7 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 3 Jul 2023 12:06:52 -0400 Subject: [PATCH] Correct comments --- coins/monero/src/block.rs | 6 +++--- coins/monero/src/ringct/borromean.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coins/monero/src/block.rs b/coins/monero/src/block.rs index 77b55aab..ddf030ab 100644 --- a/coins/monero/src/block.rs +++ b/coins/monero/src/block.rs @@ -72,9 +72,6 @@ impl Block { } pub fn tx_merkle_root(&self) -> [u8; 32] { - // TODO: Handle block 202612 - // https://monero.stackexchange.com/questions/421/what-happened-at-block-202612 - // If this block's header is fully-equivalent to 202612, return the bad TX merkle hash instead merkle_root::tree_hash(self.miner_tx.hash(), &self.txs) } @@ -91,6 +88,9 @@ impl Block { } pub fn id(&self) -> [u8; 32] { + // TODO: Handle block 202612 + // https://monero.stackexchange.com/questions/421/what-happened-at-block-202612 + // If this block's header is fully-equivalent to 202612, return the malformed hash instead hash(&self.serialize_hashable()) } diff --git a/coins/monero/src/ringct/borromean.rs b/coins/monero/src/ringct/borromean.rs index c98a0068..9ef156d7 100644 --- a/coins/monero/src/ringct/borromean.rs +++ b/coins/monero/src/ringct/borromean.rs @@ -8,7 +8,7 @@ use curve25519_dalek::{traits::Identity, scalar::Scalar, edwards::EdwardsPoint}; use monero_generators::H_pow_2; use crate::{hash_to_scalar, serialize::*}; -/// 64 Borromean ring signatures, modified to be aggregated with a shared challenge. +/// 64 Borromean ring signatures. /// /// This type keeps the data as raw bytes as Monero has some transactions with unreduced scalars in /// this field. While we could use `from_bytes_mod_order`, we'd then not be able to encode this