mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 05:29:25 +00:00
Correct comments
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user