Correct comments

This commit is contained in:
Luke Parker
2023-07-03 12:06:52 -04:00
parent 0453bfb4b2
commit 2b190851a7
2 changed files with 4 additions and 4 deletions

View File

@@ -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())
}

View File

@@ -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